
////////////////////////////////////////////////////////////////////////////////////////////////////
// @Filename: MessageDef.h
// @Description: 消息定义
// @copyright:   Copyright (c) 2015-2017 天娱在线
// @Author: LiJun
// @Date: $Id$
////////////////////////////////////////////////////////////////////////////////////////////////////


#pragma once

#include <cstdint>
#include <string>
#include <utility>
#include <algorithm>
#include <unordered_map>

// ------------------------------------------------------------------------------
//	聊天服务器外部协议号定义
// ------------------------------------------------------------------------------
const uint32_t center_server_start = 0x6000;
const uint32_t map_server_start = 0x8000;
const uint32_t max_message_id = 0x50000;


enum EnClinetMsg
{
	server_start = 0x2000,
	client_disconnect_notify = 10,
	lua_general_message_req = 0x3fff,
	lua_gm_message_req = 0x3ffe,
	server_slot_check_notify = 0x3ffc,// 游戏服务SLOT线程检查，监控工具专用 16380
	c_general_3i2s = 0x11,							//	通用协议
	s_general_3i2s = server_start + c_general_3i2s,	//	通用协议
	player_ping_ret = 0x13,							//	ping
	player_ping_req = server_start + player_ping_ret,//	ping
	player_chat_ping_ret = 0x14,
	player_chat_ping_req = server_start + player_chat_ping_ret,
	player_relay_ret = 0x15,							//	服务端中继
	player_relay_req = server_start + player_relay_ret,	//	服务端中继
	kick_player_client_notify = 0x16,					//  踢人客户端通知
	player_map_ping_ret = 0x17,
	player_map_ping_req = server_start + player_map_ping_ret,

	c_echo_data_ret = 0x18,							// echo回显
	c_echo_data_req = server_start + c_echo_data_ret,

	c_notify = 0x1F,
	s_notify = server_start + c_notify,
	c_player_enter_scene = 0x20,						//	进出场景
	s_player_enter_scene = server_start + c_player_enter_scene, //	进出场景0x2020
	c_player_leave_scene = 0x21,
	c_player_change_scene = 0x22,

	//0x40 - 0x60 作为服务启动间通信协议
	g_plat_change_map_req = 0x40,	//game，请求平台连接map 服务请求
	plat_g_change_map_res = 0x41,	//平台发送给game  map服务连接信息。
	g_gate_change_map_do = 0x42,	//game 发送给gate  map 连接信息


	s_player_change_scene = server_start + c_player_change_scene,	// 0x2022
	c_player_load_scene_finished = 0x100,  // 256
	s_player_load_scene_finished = server_start + c_player_load_scene_finished,  // 0x2100(8448)
	c_player_move = 0x101,						//	player及npc移动相关信息
	player_walk = server_start + c_player_move, //  player及npc移动相关信息0x2101
	unregiste_player_walk_info = server_start + 0x102,
	delete_walk_object = 0x103,
	add_walk_object = 0x104,
	c_update_player_info = 0x105,
	c_update_map_element_info = 0x106,
	s_update_player_orientation = server_start + 0x107,
	c_player_data_init_finished = 0x108,
	s_player_rocker_state = server_start + 0x109,
	add_walk_object_npc = 0x10a,
	s_set_player_walk_info = 0x10b,				// 移动,发给map
	common_ranklist_ret = 0x110,								//	排行榜相关信息
	common_ranklist_req = server_start + common_ranklist_ret,	//	排行榜相关信息
	c_player_buffer_specified_part = 0x111,			//	缓冲区数据更新
	c_player_Fixed_info_ret = 0x112,				//	玩家固有信息
	c_player_Fixed_info_req = server_start + 0x112,	//	玩家固有信息
	c_update_player_sync_info = 0x115,				// mmo 步行同步 277
	register_to_center_server = server_start + 0x100,
	gc_player_register_to_center_server = center_server_start + 0x200,

	// 任务相关
	common_click_npc_req = server_start + 0x120,	//	点击npc
	common_open_mission_dialog_ret = 0x121,			//	打开任务对话框
	common_open_mission_dialog_req = server_start + common_open_mission_dialog_ret,//	打开任务对话框
	common_mission_list_ret = 0x122,									//	请求任务列表
	common_mission_list_req = server_start + common_mission_list_ret,	//	请求任务列表
	common_mission_complete_list_ret = 0x123,		//	任务完成情况
	common_mission_complete_list_req = server_start + common_mission_complete_list_ret,//	任务完成情况
	update_mission_info = 0x124,	//	暂无用
	update_mission_complete = 0x125,//	暂无用
	common_notice_reward_dialogue_common_ret = 0x126,//	奖励对话框
	common_notice_common_ret = 0x127,//	通用返回协议
	common_mission_dungeon_complete_req = server_start + 0x128,//完成副本任务：返回notice_common = 0x127
	common_mission_collect_complete_req = server_start + 0x129,//完成采集任务返回：notice_common = 0x127
	common_mission_killmonster_complete_req = server_start + 0x12A, //	完成杀怪任务返回：notice_common = 0x127// 0x212A 8490
	common_mission_move_complete_req = server_start + 0x12B,//	完成移动送信任务返回：notice_common = 0x127
	common_notice_common_ex_ret = 0x12C,//	通用返回协议(ex)
	common_get_reward_props_req = server_start + 0x12D,//	领取奖励通用协议 <ret：0x126>1日常2活跃度箱子3悬赏奖励(missionid -> arg1)
	common_mission_box_info_req = server_start + 0x12F,	// 活跃度箱子信息 8495
	common_mission_box_info_ret = 0x12F,				// 活跃度箱子信息 8495
	common_offer_reward_mission_list_ret = 0x150,		// 返回(推送)悬赏任务列表 336
	common_offer_reward_mission_new_list_req = server_start + 0x150,// 刷新悬赏任务列表 8528
	common_offer_reward_mission_operation_req = server_start + 0x151, // 悬赏任务操作 8529 type -> arg2 [1接受任务 2放弃任务 3立即完成 4领取奖励]
	common_update_mission_item_info_ret = 0x152,// 更新任务条目(推送) 338
	common_accept_mission_target_info_req = server_start + 0x153, //0x2153//	请求已接受主线任务目标信息(--特定临时处理--后期前端可读表)
	common_ask_offer_reward_mission_req = server_start + 0x154,//  请求悬赏任务列表
	common_ask_daily_mission_req = server_start + 0x155,	// 8533//  请求日常任务列表
	common_ask_daily_mission_ret = 0x155,//  请求日常任务列表
	common_ask_branch_mission_req = server_start + 0x156,	//  请求支线任务列表
	common_ask_branch_mission_ret = 0x156,					//  请求支线任务列表

	common_ask_branch_mission_reward_req = server_start + 0x157,
	common_ask_branch_mission_reward_ret = 0x157,

	common_mission_trunk_accept_req = server_start + 0x158, //  接受主线任务(请求)<未用>
	common_mission_trunk_accept_res = 0x158, //  接受主线任务(返回)
	common_mission_trunk_reward_req = server_start + 0x159, //  主线任务领奖(请求)<未用>
	common_mission_trunk_reward_res = 0x159, //  主线任务领奖(返回)

	common_mission_trunk_dialogue_finish_req = server_start + 0x15a, // 主线任务聊天结束(请求)<未用>
	common_mission_trunk_dialogue_finish_res = 0x15a, // 主线任务聊天结束(返回)

	//	称号相关协议
	common_title_list_ret = 0x140,//称号列表
	common_title_list_req = server_start + common_title_list_ret,//称号列表
	common_title_wear_or_takeoff_ret = 0x141,//	穿、卸称号
	common_title_wear_or_takeoff_req = server_start + common_title_wear_or_takeoff_ret,//	穿、卸称号


	common_wild_dig_operation_ret = 0x142,				 // 野外挖宝 8514
	common_wild_dig_operation_req = server_start + 0x142,// 野外挖宝 8514

	common_arena_rank_mode_ret = 0x143,					 // 主城角斗场前三名雕像 323
	common_arena_rank_mode_req = server_start + 0x143,	 // 主城角斗场前三名雕像 8515

	//	攻击、技能相关
	c_player_attack_ret = 0x130,
	s_player_attack_req = server_start + c_player_attack_ret,
	c_lose_blood_ret = 0x131,							//	失血 回血
	s_lose_blood_req = server_start + c_lose_blood_ret,	//	失血 回血
	c_someone_dead_ret = 0x132,							//	死亡
	c_monster_attack_ret = 0x133,						//	怪物攻击
	s_set_player_hp = server_start + 0x134,				//	设定生命值
	c_player_revive_ret = 0x135,						// 死亡后复活
	s_player_revive_req = server_start + c_player_revive_ret,
	c_target_zero_blood_push = 0x136,					//	目标死亡通知

	// Login服务器消息定义
	login_check_account_req = server_start + 0x200, // 验证帐号 0x2200
	login_check_account_ret = 0x200,
	login_get_gamesrv_info_req = server_start + 0x201,// 获取GameSrv信息列表
	login_get_gamesrv_info_ret = 0x201,// 获取GameSrv信息列表
	login_account_login_queue_req = server_start + 0x203,// 登录排队
	login_account_login_queue_ret = 0x203,// 登录排队
	l2g_create_player_req = 0x204,	 // 创建角色L->G
	g2l_create_player_ret = 0x205,	 // 创建角色L->G
	g2d_create_player_req = 0x206,	 // 创建角色G->D
	d2g_create_player_ret = 0x207,	 // 创建角色D->G
	l2g_player_login_req = 0x208,	 // 角色登陆L->G
	g2l_player_login_ret = 0x209,	 // 角色登陆L->G
	g2d_player_login_req = 0x20A,	 // 角色登陆G->D
	d2g_player_login_ret = 0x20B,	 // 角色登陆D->G
	l2g_login_check_account_req = 0x20C,//查询有没有角色
	g2l_login_check_account_ret = 0x20D,//查询有没有角色
	g2d_load_player_req = 0x20E,
	d2g_load_player_ret = 0x210,
	c2g_player_enter_game_req = 0x211,// 玩家登陆game请求
	g2c_player_enter_game_ret = 0x212,// 玩家登陆game请求

    g2p_account_info_req = server_start + 0x220,	// 游戏请求平台服务 客户信息
	p2g_account_info_ret = 0x220, //平台服务 返回给游戏客户信息
	g2p_login_out_account_change_req = 0x221, //game 登出修改 平台服务的消息id
	g_map_player_login_req = 0x222, // game 发送给map服务消息

	login_create_player_req = 0x3e9, // 创建角色
	login_create_player_ret = 0x3ea, // 创建角色
	login_player_login_req = 0x3eb,  // 角色登录
	login_player_login_ret = 0x3ec,	
	game_player_login_req = 0x3ed,  // 角色登录game
	game_player_login_ret = 0x3ee,
	game_create_player_req = 0x400, // 创建角色game
	game_create_player_ret = 0x401,
	login_queue_pos_notify = 0x402,	//登录时排队位置通知


	login_change_name_req = server_start + 0x404,// 修改角色名称// name -> arg1 新名称
	login_change_name_ret = 0x404,// 修改角色名称// name -> arg1 新名称
	login_change_photo_frame_req = server_start + 0x405,// 修改头像框
	login_change_photo_frame_ret = 0x405,// 修改头像框
	login_load_player_info_req = server_start + 0x406,// 读取指定用户信息到Redis中 9222
	login_load_player_info_ret = 0x406,// 读取指定用户信息到Redis中 9222

	login_force_quit_game_notify = 0x407, // 强制用户退出游戏消息通知 1031
	login_player_quit_game_notify = server_start + 0x408,	// 0x2408// 客户端发送离开游戏通知 9223
	
	game_2_db_login_out = server_start + 0x409, // 0x2409 game发送给db的 登出消息

	// Common服务器消息定义
	common_backpack_list_req = server_start + 0x501,// 获取背包列表 9473
	common_backpack_list_ret = 0x501,// 获取背包列表 9473
	common_sell_item_req = server_start + 0x502, //出售物品列表[[1000010, "casdfkaj_sjfksjd_cfgoo", 9]..[1000011, "cascg0aj_sjfksjd_cfgoo", 2]]
	common_sell_item_ret = 0x502,
	common_use_item_req = server_start + 0x503,	// 使用物品 9475	暂无用
	common_use_item_ret = 0x503,				// 使用物品 9475	暂无用
	common_buy_action_point_req = server_start + 0x504,	// 购买体力或活力 9476// types -> arg1 购买类型 1买体力；2买活力
	common_buy_action_point_ret = 0x504,				// 购买体力或活力 9476// times -> arg2 购买次数

	// 商店
	common_shop_goods_list_req = server_start + 0x505,	// 获取商店列表 9477// types -> arg1 商店类型 1杂货商店；2精英商店；3神秘商店；4远征商店；5竞技场商店；6工会商店
	common_shop_goods_list_ret = 0x505,					// 获取商店列表 9477// level -> arg2 当前战队等级
	common_buy_shop_goods_req = server_start + 0x506,	// 购买商品 9478 // types -> arg1 商店类型 1杂货商店；2精英商店；3神秘商店；4远征商店；5竞技场商店；6工会商店
	common_buy_shop_goods_ret = 0x506,					// 购买商品 9478 // itemId -> arg2 商品ID
	common_refresh_shop_goods_req = server_start + 0x507,	// 更新商品列表 9479// types -> arg1 商店类型 1杂货商店；2精英商店；3神秘商店；4远征商店；5竞技场商店；6工会商店
	common_refresh_shop_goods_ret = 0x507,					// 更新商品列表 9479// level -> arg2 当前战队等级
	
	// 抽奖
	common_lucky_gamble_req = server_start + 0x508,// 抽奖 9480ct -> arg1 抽奖类型 0免费；1正常扣费// at -> arg2 抽奖个数// vt -> arg3 抽奖类型 1金币抽；2钻石抽；3魂匣抽
	common_lucky_gamble_ret = 0x508,			   // 抽奖 9480
	common_lucky_gamble_list_req = server_start + 0x509,// 抽奖列表 9481
	common_lucky_gamble_list_ret = 0x509,				// 抽奖列表 9481
	common_update_item_list_req = server_start + 0x50a,// 更新物品列表及数量 9482
	common_update_item_list_ret = 0x50a,// 1290		   // 更新物品列表及数量 9482
	common_buy_someone_ret = 0x50b, // 1291						   // 非商店购买某物品 9483
	common_buy_someone_req = server_start + common_buy_someone_ret,// 非商店购买某物品 9483

	common_exchange_cdkey_item_ret = 0x50c,// 用CDKEY兑换物品 9484
	common_exchange_cdkey_item_req = server_start + common_exchange_cdkey_item_ret,// 用CDKEY兑换物品 9484

	// 英雄
	common_player_hero_list_req = server_start + 0x510,// 获取用户英雄列表 9488
	common_player_hero_list_ret = 0x510,			   // 获取用户英雄列表 9488
	common_player_hero_info_req = server_start + 0x511,// 获取英雄详细信息 9489
	common_player_hero_info_ret = 0x511,			   // 获取英雄详细信息 9489
	common_assign_fight_hero_req = server_start + 0x512,// 指定出战英雄 9490// types -> arg1 类型 1普通副本；2竞技场防守；3活动副本一；4活动副本二；5活动副本三；6活动副本四；7活动副本五
	common_assign_fight_hero_ret = 0x512,				// 指定出战英雄 9490// hero -> arg2 出战英雄列表 {"1":111,"2":222,"3":333,"4":444,"5":0,"6":0}
	common_soulgem_exchange_hero_req = server_start + 0x513,// 魂石置换英雄 9491// heroId -> arg1 置换英雄ID// itemId -> arg3 置换物品ID
	common_soulgem_exchange_hero_ret = 0x513,				// 魂石置换英雄 9491// star -> arg2 置换英雄星级// count -> arg4 置换物品数量
	common_upgrade_hero_star_req = server_start + 0x514,// 英雄升星 9492// heroId -> arg1 升星英雄ID  // itemId -> arg3 升星物品ID
	common_upgrade_hero_star_ret = 0x514,				// 英雄升星 9492// star -> arg2 待升级至星级数	// count -> arg4 升星物品数量
	common_upgrade_hero_equipment_req = server_start + 0x515,// 升级英雄装备 9493// heroId -> arg1 升级装备英雄ID// cGold -> arg3 升级消耗金币数量
	common_upgrade_hero_equipment_ret = 0x515,				 // 升级英雄装备 9493// site -> arg2 升级装备位置 1武器；2头盔；3胸甲；4腿甲；5护手；6鞋子 {"1":3,"2":4,"3":0,"4":1,"5":0,"6":5}
	common_hero_equipment_volve_req = server_start + 0x516,// 英雄装备进化 9494// heroId -> arg1 进化装备英雄ID
	common_hero_equipment_volve_ret = 0x516,			   // 英雄装备进化 9494// site -> arg2 进化装备位置 1武器；2头盔；3胸甲；4腿甲；5护手；6鞋子
	common_hero_equipment_compound_req = server_start + 0x517,// 英雄装备材料合成 9495// itemId -> arg1 材料ID
	common_hero_equipment_compound_ret = 0x517,				  // 英雄装备材料合成 9495// amount -> arg2 材料数量
	common_upgrade_hero_grade_req = server_start + 0x518,// 英雄进阶 9496
	common_upgrade_hero_grade_ret = 0x518,				 // 英雄进阶 9496
	common_hero_skill_list_req = server_start + 0x519,// 获取英雄技能列表 9497
	common_hero_skill_list_ret = 0x519,				  // 获取英雄技能列表 9497
	common_upgrade_hero_skill_req = server_start + 0x51a,// 英雄技能升级 9498
	common_upgrade_hero_skill_ret = 0x51a,				 // 英雄技能升级 9498
	common_reset_hero_skill_req = server_start + 0x51b,	// 技能点重置 9499
	common_reset_hero_skill_ret = 0x51b,				// 技能点重置 9499
	common_upgrade_hero_level_req = server_start + 0x51f,// 英雄使用经验药水 9503
	common_upgrade_hero_level_ret = 0x51f,				 // 英雄使用经验药水 9503
	common_hero_equipment_list_req = server_start + 0x520,// 获取英雄装备列表 9504
	common_hero_equipment_list_ret = 0x520,				  // 获取英雄装备列表 9504
	common_hero_levelup_notify = 0x521,// 英雄升级通知
	common_player_levelup_notify = 0x522,// 战队升级通知 // 1314
	common_update_hero_list_ret = 0x523, // 1315// 刷新增加某英雄 9507
	common_update_hero_list_req = server_start + common_update_hero_list_ret,// 刷新增加某英雄 9507
	common_specified_hero_attrib_ret = 0x524, // 1316// 获取指定英雄属性列表 9508
	common_specified_hero_attrib_req = server_start + common_specified_hero_attrib_ret,// 获取指定英雄属性列表 9508
	common_buy_and_use_hero_skin_ret = 0x525, // 1317// 购买并使用某英雄皮肤 9509
	common_buy_and_use_hero_skin_req = server_start + common_buy_and_use_hero_skin_ret,// 购买并使用某英雄皮肤 9509
	common_change_hero_skin_ret = 0x526, // 1318// 更改某英雄皮肤 9510
	common_change_hero_skin_req = server_start + common_change_hero_skin_ret,// 更改某英雄皮肤 9510
	common_up_hero_passive_attr_ret = 0x52a, // 1322// 升级英雄被动属性 9514
	common_up_hero_passive_attr_req = server_start + common_up_hero_passive_attr_ret,// 升级英雄被动属性 9514

	//好友
	common_recommended_friend_list_req = server_start + 0x530,// 获取推荐好友列表 9520
	common_recommended_friend_list_ret = 0x530,				  // 获取推荐好友列表 9520
	common_player_friend_list_req = server_start + 0x531,// 获取好友列表 9521
	common_player_friend_list_ret = 0x531,				 // 获取好友列表 9521
	common_search_friend_req = server_start + 0x532, // 搜索好友 9522
	common_search_friend_ret = 0x532,				 // 搜索好友 9522
	common_add_friend_req = server_start + 0x533,	 // 添加好友请求 9523
	common_add_friend_ret = 0x533,					 // 添加好友请求 9523
	common_delete_friend_req = server_start + 0x534, // 删除好友 9524
	common_delete_friend_ret = 0x534,				 // 删除好友 9524
	common_friend_function_listreq = server_start + 0x535,// 获取好友功能状态列表 9525
	common_friend_function_listret = 0x535,				  // 获取好友功能状态列表 9525
	common_allow_add_friend_req = server_start + 0x536,	  // 同意添加好友 9526
	common_allow_add_friend_ret = 0x536,				  // 同意添加好友 9526
	common_player_friend_operation_notify = 0x537,
	common_init_friend_fight_req = server_start + 0x538,  // 好友切磋请求 9528
	common_init_friend_fight_ret = 0x538,				  // 好友切磋请求 9528
	common_friend_fight_settlement_req = server_start + 0x539, // 好友切磋结算 9529 暂无用
	common_friend_fight_settlement_ret = 0x539,				   // 好友切磋结算 9529 暂无用
	common_friend_quick_action_req = server_start + 0x53a,// 一键操作 9530// types -> arg1 操作类型 1一键领取 2一键赠送
	common_friend_quick_action_ret = 0x53a,				  // 一键操作 9530// types -> arg1 操作类型 1一键领取 2一键赠送
	common_query_player_info_req = server_start + 0x53b,  // 随时查看某用户信息 9531
	common_query_player_info_ret = 0x53b,				  // 随时查看某用户信息 9531
	common_add_friend_notify = 0x53c,					 //添加好友通知，给被添加的人的通知
	common_del_friend_notify = 0x53d,					 //删除好友通知，给被删除的人的通知
	common_sendjitui_notify = 0x53e,					 //送鸡腿通知被送的人
		
	common_friend_stranger_req = server_start + 0x53f,	 //陌生人
	common_friend_stranger_ret = 0x53f,

	// 邮件
	common_player_mail_list_req = server_start + 0x540,	  // 获取邮件列表 9536
	common_player_mail_list_ret = 0x540,				  // 获取邮件列表 9536
	common_read_mail_req = server_start + 0x541,		  // 读取某邮件详细信息 9537
	common_read_mail_ret = 0x541,						  // 读取某邮件详细信息 9537
	common_distill_mail_item_req = server_start + 0x542,  // 获取某邮件附件中物品 9538
	common_distill_mail_item_ret = 0x542,				  // 获取某邮件附件中物品 9538
	common_delete_mail_req = server_start + 0x543,		  // 删除邮件 9539
	common_delete_mail_ret = 0x543,						  // 删除邮件 9539
	common_new_mail_count_req = server_start + 0x544,	  // 获取新邮件个数 9540
	common_new_mail_count_ret = 0x544,					  // 获取新邮件个数 9540
	common_change_mail_newf_req = server_start + 0x545,	  // 批量更改邮件已读状态 9541
	common_change_mail_newf_ret = 0x545,				  // 批量更改邮件已读状态 9541
	common_have_new_mail_notify = server_start + 0x546,	  // 新邮件通知 9542
	common_send_mail_req = server_start + 0x547,		  // 发送邮件到 game
	common_send_mail_ret = 0x547,
	http_send_mail_req = server_start + 0x54f,		  // 发送邮件到 game

	common_timeing_dining_req = server_start + 0x550,	  // 定时进餐 9552
	common_timeing_dining_ret = 0x550,					  // 定时进餐 9552

	// 签到
	common_everyday_sign_list_req = server_start + 0x551, // 每日签到列表 9553
	common_everyday_sign_list_ret = 0x551,				  // 每日签到列表 9553
	common_everyday_sign_req = server_start + 0x552,	  // 每日签到 9554
	common_everyday_sign_ret = 0x552,					  // 每日签到 9554
	common_everyday_sign_reward_req = server_start + 0x553,// 每日签到累计奖励 9555
	common_everyday_sign_reward_ret = 0x553,			   // 每日签到累计奖励 9555
	common_everyday_sign_again_req = server_start + 0x554,// 每日签到补签 9556
	common_everyday_sign_again_ret = 0x554,				  // 每日签到补签 9556

	// 奖励
	common_player_level_reward_req = server_start + 0x555,// 领取等级奖励 9557
	common_player_level_reward_ret = 0x555,				  // 领取等级奖励 9557
	common_draw_online_reward_req = server_start + 0x556, // 领取在线奖励 9558
	common_draw_online_reward_ret = 0x556,				  // 领取在线奖励 9558
	common_newbie_reward_req = server_start + 0x557,	  // 新手日登陆奖励 9559
	common_newbie_reward_ret = 0x557,					  // 新手日登陆奖励 9559

	common_redpoint_check_notify = server_start + 0x558,  // 检查红点状态 9560

	// 金手指？什么鬼
	common_lucky_draw_count_req = server_start + 0x560,	  // 获取金手指使用次数 9568  0x2560
	common_lucky_draw_count_ret = 0x560,				  // 获取金手指使用次数 9568  0x2560
	common_use_lucky_draw_req = server_start + 0x561,	  // 使用金手指次数 9569
	common_use_lucky_draw_ret = 0x561,					  // 使用金手指次数 9569


	// 聊天
	common_player_chat_msg_req = server_start + 0x570,	  // 客户端聊天信息通知 9584 0x2570
	common_player_chat_msg_ret = 0x570,					  // 客户端聊天信息通知 9584 0x2570
	common_server_chat_msg_notify = server_start + 0x571,
	player_chat_message = server_start + 0x570,			  // chat服的，更上面的重复了，先不管，不影响，以后再优化
	player_chat_message_ret = 0x570,					  // chat服的，更上面的重复了，先不管，不影响，以后再优化
	common_server_chat_msg_notify_push = 0x571,			  // chat服的，更上面的重复了，先不管，不影响，以后再优化
	common_server_chat_record_req = server_start + 0x572,
	common_server_chat_record_ret = 0x572,
	player_friend_chat_message_req = server_start + 0x573,
	player_friend_chat_message_ret = 0x573,
	common_server_chat_friend_msg_notify_push = 0x574,
	player_chat_record_req = server_start + 0x574,
	player_chat_record_ret = 0x574,
	common_msg_notify	= 0x575,
	
	
	

	// 竞技场消息定义
	pve_search_moba_list_req = server_start + 0x580,	  // 获取竞技场列表 9600
	pve_search_moba_list_ret = 0x580,					  // 获取竞技场列表 9600
	pve_init_moba_fight_req = server_start + 0x581,		  // 初始化竞技场战斗 9601  暂无用
	pve_init_moba_fight_ret = 0x581,					  // 初始化竞技场战斗 9601  暂无用
	pve_start_moba_fight_req = server_start + 0x582,	  // 竞技场战斗 9602  暂无用
	pve_start_moba_fight_ret = 0x582,					  // 竞技场战斗 9602  暂无用
	pve_moba_settlement_req = server_start + 0x583,		  // 竞技场战斗结算 9603 0x2583
	pve_moba_settlement_ret = 0x583,					  // 竞技场战斗结算 9603 0x2583
	pve_draw_moba_reward_req = server_start + 0x584,	  // 竞技场胜利抽奖 9604
	pve_draw_moba_reward_ret = 0x584,					  // 竞技场胜利抽奖 9604

	// 角斗场
	pve_query_arena_list_req = server_start + 0x590,	  // 获取角斗场列表 9616   0x2590
	pve_query_arena_list_ret = 0x590,					  // 获取角斗场列表 9616   0x2590
	pve_init_arena_fight_req = server_start + 0x591,	  // 初始化角斗场战斗 9617
	pve_init_arena_fight_ret = 0x591,					  // 初始化角斗场战斗 9617
	pve_start_arena_fight_req = server_start + 0x592,	  // 角斗场战斗 9618
	pve_start_arena_fight_ret = 0x592,					  // 角斗场战斗 9618
	pve_arena_settlement_req = server_start + 0x593,	  // 角斗场战斗结算 9619 0x2593
	pve_arena_settlement_ret = 0x593,					  // 角斗场战斗结算 9619 0x2593

	// 王座
	pve_throne_list_req = server_start + 0x598,			  // 获取用户当前王座列表 9624
	pve_throne_list_ret = 0x598,						  // 获取用户当前王座列表 9624
	pve_init_throne_fight_req = server_start + 0x599,	  // 用户王座初始化战斗 9625
	pve_init_throne_fight_ret = 0x599,					  // 用户王座初始化战斗 9625
pve_throne_settlement_req = server_start + 0x59a,	  // 用户王座战斗结算 9626
pve_throne_settlement_ret = 0x59a,					  // 用户王座战斗结算 9626
pve_draw_throne_reward_req = server_start + 0x59b,	  // 领取王座日奖励 9627
pve_draw_throne_reward_ret = 0x59b,					  // 领取王座日奖励 9627


// 推图副本，普通或者精英
pve_worldmap_list_req = server_start + 0x600,		  // 获取世界地图列表 9728
pve_worldmap_list_ret = 0x600,						  // 获取世界地图列表 9728
pve_dungeon_list_req = server_start + 0x601,		  // 获取副本列表 9729// mapId -> arg1 地图ID
pve_dungeon_list_ret = 0x601,						  // 获取副本列表 9729// types -> arg2 副本类型 1普通副本；2精英副本
pve_into_dungeon_req = server_start + 0x602,		  // 进入副本请求 9730
pve_into_dungeon_ret = 0x602,						  // 进入副本请求 9730
pve_start_dungeon_fight_req = server_start + 0x603,	  // 开始副本战斗 9731
pve_start_dungeon_fight_ret = 0x603,				  // 开始副本战斗 9731
pve_dungeon_settlement_req = server_start + 0x604,	  // 副本战斗结算 9732
pve_dungeon_settlement_ret = 0x604,					  // 副本战斗结算 9732
pve_draw_dungeon_box_reward_req = server_start + 0x605,// 领取副本列表箱子奖励 9733
pve_draw_dungeon_box_reward_ret = 0x605,			   // 领取副本列表箱子奖励 9733
pve_flash_dungeon_req = server_start + 0x606,		   // 扫荡副本 9734
pve_flash_dungeon_ret = 0x606,						   // 扫荡副本 9734

// 活动副本
pve_eventdungeon_list_req = server_start + 0x607,	   // 获取活动副本列表 9735
pve_eventdungeon_list_ret = 0x607,					   // 获取活动副本列表 9735
pve_into_eventdungeon_req = server_start + 0x608,	   // 进入活动副本请求 9736
pve_into_eventdungeon_ret = 0x608,					   // 进入活动副本请求 9736
pve_start_eventdungeon_req = server_start + 0x609,	   // 开始活动副本战斗 9737
pve_start_eventdungeon_ret = 0x609,					   // 开始活动副本战斗 9737
pve_eventdungeon_settlement_req = server_start + 0x60a,// 活动副本战斗结算 9738
pve_eventdungeon_settlement_ret = 0x60a,			   // 活动副本战斗结算 9738
pve_eventdungeon_flash_req = server_start + 0x60b,	   // 扫荡活动副本 9739
pve_eventdungeon_flash_ret = 0x60b,					   // 扫荡活动副本 9739
pve_reset_elite_dungeon_ret = 0x60c,									 // 重置某精英副本 9740
pve_reset_elite_dungeon_req = server_start + pve_reset_elite_dungeon_ret,// 重置某精英副本 9740
pve_date_prepare_in_scene_ret = 0x60d,										 // 副本战斗场景内数据准备 9741
pve_date_prepare_in_scene_req = server_start + pve_date_prepare_in_scene_ret,// 副本战斗场景内数据准备 9741


// 新手引导和功能开发
//这个功能解锁不用了，用的0x1203那个协议
//guide_function_opening_notify = server_start + 0x610,// 功能开放通知 1552
guide_set_state_req = server_start + 0x611,			//	更新对应引导状态
c_player_guide_info_ret = 0x612,//--？							  //	引导相关协议
s_player_guide_info_req = server_start + c_player_guide_info_ret,////	引导相关协议
c_player_manipulate_specified_UI = 0x613,//	指定前端UI显示
guide_ask_for_event_req = server_start + 0x614,//	请求引导触发事件

// moba pvp战斗
pvp_application_fight_req = server_start + 0x620,//moba实时PVP战斗申请 9760types->arg1 战斗类型 1 1v1，3 3v3，5 5v5
pvp_application_fight_ret = 0x620,				 //moba实时PVP战斗申请 9760types->arg1 战斗类型 1 1v1，3 3v3，5 5v5
pvp_fight_list_data_notify = 0x621,// moba实时PVP战斗人员信息通发 9761// {msgid=1569,"r":{"1":{"playerId":1111,"account:":1}.."5":{}},"b":{"1":{"playerId":1111,"account:":1}.."5":{}}}
pvp_fight_over_req = server_start + 0x622,// moba实时PVP结束通知 9762// types -> arg1 战斗类型 1 1v1，3 3v3，5 5v5
pvp_fight_over_ret = 0x622,				  // moba实时PVP结束通知 9762// types -> arg1 战斗类型 1 1v1，3 3v3，5 5v5


// 公会
union_query_union_list_ret = 0x630,									 // 获取已创建工会列表 9776
union_query_union_list_req = server_start + union_query_union_list_ret,// 获取已创建工会列表 9776
union_search_someone_ret = 0x631,										 // 搜索工会 9777
union_search_someone_req = server_start + union_search_someone_ret,		 // 搜索工会 9777
union_create_someone_ret = 0x632,										 // 创建工会 9778  0x2632
union_create_someone_req = server_start + union_create_someone_ret,		 // 创建工会 9778  0x2632
union_disband_someone_ret = 0x633,										 // 解散工会 9779
union_disband_someone_req = server_start + union_disband_someone_ret,	 // 解散工会 9779
union_application_join_ret = 0x634,										 // 申请加入工会 9780
union_application_join_req = server_start + union_application_join_ret,	 // 申请加入工会 9780
union_query_application_list_ret = 0x635,										   // 获取工会申请列表 9781
union_query_application_list_req = server_start + union_query_application_list_ret,// 获取工会申请列表 9781
union_approve_application_ret = 0x636,										 // 批准某人进入工会 9782
union_approve_application_req = server_start + union_approve_application_ret,// 批准某人进入工会 9782
union_exits_someone_ret = 0x637,								 // 退出工会 9783
union_exits_someone_req = server_start + union_exits_someone_ret,// 退出工会 9783
union_kickout_someone_ret = 0x638,									 // 踢出某位会员 9784
union_kickout_someone_req = server_start + union_kickout_someone_ret,// 踢出某位会员 9784
union_change_someone_position_ret = 0x639,											 // 工会会长传位给某人 9785
union_change_someone_position_req = server_start + union_change_someone_position_ret,// 工会会长传位给某人 9785
union_query_all_member_ret = 0x63a,										// 获取当前工会会员列表 9786
union_query_all_member_req = server_start + union_query_all_member_ret,	// 获取当前工会会员列表 9786
union_edit_some_info_ret = 0x63b,										// 编辑工会信息 9787
union_edit_some_info_req = server_start + union_edit_some_info_ret,		// 编辑工会信息 9787
union_query_detailed_info_ret = 0x63c,										 // 获取某工会详细信息 9788
union_query_detailed_info_req = server_start + union_query_detailed_info_ret,// 获取某工会详细信息 9788
union_information_changed_notify = 0x63d,											   // 某用户工会信息改变通知 1597
union_information_changed_notify_req = server_start + union_information_changed_notify,// 某用户工会信息改变通知 1597
player_union_changed_notify_chat_server = server_start + 0x63e,
union_changed_notify_chat_server = server_start + 0x63f,
union_player_donation_info_ret = 0x640,
union_player_donation_info_req = server_start + union_player_donation_info_ret,
union_uplevel_info_ret = 0x641,
union_uplevel_info_req = server_start + union_uplevel_info_ret,
id_g2d_create_guild_request = 0x642,
id_g2d_save_guild_request = 0x643,
id_c2g_player_cancel_apply_request = 0x644,
id_g2c_player_cancel_apply_response = 0x645,
union_apply_list_notify = 0x646,
union_alcohol_list_ret = 0x647,									// 酒会列表
union_alcohol_list_req = server_start + union_alcohol_list_ret, // 酒会列表
union_alcohol_use_ret = 0x648,									// 用酒
union_alcohol_use_req = server_start + union_alcohol_use_ret,	// 用酒
union_query_journal_list_ret = 0x649,
union_query_journal_list_req = server_start + union_query_journal_list_ret,	// 9801
union_player_donation_ret = 0x64a,
union_player_donation_req = server_start + union_player_donation_ret,		// 公会捐献9802


	// 坐骑和宠物
	pet_query_list_ret = 0x650,									// 获取已有宠物或坐骑列表 9808
	pet_query_list_req = server_start + pet_query_list_ret,		// 获取已有宠物或坐骑列表 9808
	pet_change_status_ret = 0x651,								   // 改变宠物或坐骑的状态 9809
	pet_change_status_req = server_start + pet_change_status_ret,  // 改变宠物或坐骑的状态 9809
	pet_update_pet_list_ret = 0x652,								  // 更新宠物信息 9810
	pet_update_pet_list_req = server_start + pet_update_pet_list_ret, // 更新宠物信息 9810
	pet_update_mounts_list_ret = 0x653,
	pet_update_mounts_list_req = server_start + pet_update_mounts_list_ret,	// 更新坐骑信息 9811
	pet_set_defend_status_ret = 0x654,										// 设置默认的宠物或坐骑 9812
	pet_set_defend_status_req = server_start + pet_set_defend_status_ret,	// 设置默认的宠物或坐骑 9812


	// 远征
	pve_expedition_info_req = server_start + 0x660,			 //远征关卡信息[9824:1632]
	pve_expedition_info_ret = 0x660,						 //远征关卡信息[9824:1632]
	pve_update_current_gate_req = server_start + 0x661,		 //刷新当前关卡[9825:1633]
	pve_update_current_gate_ret = 0x661,					 //刷新当前关卡[9825:1633]
	pve_expedition_start_req = server_start + 0x662,		 //远征战斗开始[9826:1634]
	pve_expedition_start = 0x662,							 //远征战斗开始[9826:1634]
	pve_expedition_finish_req = server_start + 0x663,		 //远征战斗结算[9827:1635]
	pve_expedition_finish_ret = 0x663,						 //远征战斗结算[9827:1635]
	pve_expedition_box_reward_req = server_start + 0x664,	 //远征宝箱领取[9828:1636]
	pve_expedition_box_reward_ret = 0x664,					 //远征宝箱领取[9828:1636]
	pve_expedition_ready_fight_req = server_start + 0x665,	 //远征战前准备[9829:1637]
	pve_expedition_ready_fight_ret = 0x665,					 //远征战前准备[9829:1637]


	// 充值
	common_start_rechange_ret = 0x690,									  // 充值开始通知  9872
	common_start_rechange_req = server_start + common_start_rechange_ret, // 充值开始通知  9872
	common_rechange_finished_ret = 0x691,  // 1681							   // (WEB-API)充值成功通知  0x2691 9873// 百度返回给服务器充值成功的时候， 返回给前端的通知
	common_rechange_finished_req = server_start + common_rechange_finished_ret,// (WEB-API)充值成功通知  0x2691 9873
	common_draw_first_rechange_box_ret = 0x696,											   // 领取首充豪华大礼包  9878
	common_draw_first_rechange_box_req = server_start + common_draw_first_rechange_box_ret,// 领取首充豪华大礼包  9878
	common_buy_special_card_ret = 0x697,									 // 购买月卡  9879
	common_buy_special_card_req = server_start + common_buy_special_card_ret,// 购买月卡  9879

	g2d_recharge_update_state = server_start + 0x6a7, // -- 发送奖励成功后 更新游戏充值状态

	player_heal_req = server_start + 0x700,	  //玩家回血[9984:1792]
	player_heal_ret = 0x700,				  //玩家回血[9984:1792]

	// 工会红包
	union_query_redpacket_list_ret = 0x701,										 // 红包列表 1793
	union_query_redpacket_list_req = server_start + union_query_redpacket_list_ret,		 // 红包列表 9985
	union_get_redpacket_ret = 0x702,										 // 领取红包 1794
	union_get_redpacket_req = server_start + union_get_redpacket_ret,		 // 领取红包 9986
	union_query_redpacket_info_ret = 0x703,									 // 查看红包信息 1795
	union_query_redpacket_info_req = server_start + union_query_redpacket_info_ret,		 // 查看红包信息 9987
	union_send_redpacket_ret = 0x704,										 // 发送红包 1796
	union_send_redpacket_req = server_start + union_send_redpacket_ret,		 // 发送红包 9988
	union_redpacket_notify = server_start + 0x705,							 // 红包通知 9989

	// 无尽试炼
	common_endless_trial_list_ret = 0x710,										  // 获取无尽试炼列表  10000  0x2710
	common_endless_trial_list_req = server_start + common_endless_trial_list_ret, // 获取无尽试炼列表  10000  0x2710
	common_init_endless_trial_ret = 0x711,										  // 初始化无尽试炼列表  10001
	common_init_endless_trial_req = server_start + common_init_endless_trial_ret, // 初始化无尽试炼列表  10001
	common_start_endless_trial_ret = 0x712,										   // 开始无尽试炼  10002
	common_start_endless_trial_req = server_start + common_start_endless_trial_ret,// 开始无尽试炼  10002
	common_endless_trial_settlement_ret = 0x713,											 // 无尽试炼结算  10003
	common_endless_trial_settlement_req = server_start + common_endless_trial_settlement_ret,// 无尽试炼结算  10003
	common_draw_endless_trial_reward_ret = 0x714,												// 领取无尽试炼日奖励 10004
	common_draw_endless_trial_reward_req = server_start + common_draw_endless_trial_reward_ret,	// 领取无尽试炼日奖励 10004
	
		
	common_query_online_reward_req = server_start + 0x910,// 领取在线查询 9558 0x2910   ?10512  为何两个在线奖励协议  zzh 18-3-10
	common_query_online_reward_ret = 0x910,				  // 领取在线查询 9558 0x2910   ?10512  为何两个在线奖励协议  zzh 18-3-10

	gm_public_message_notify = server_start + 0x1000,	// GM发送跑马灯通知 12288
	// GM发送全服邮件 12289
	// title -> arg1 标题
	// content -> arg2 内容
	// item -> arg3 物品列表
	// gold -> arg4 金币
	// diamond -> arg5 钻石
	// types -> arg6 发送类型	1 单一玩家
	//							2 所有服务器玩家
	//							3 多个玩家,号隔开
	//							4 当前所选服务器下所有注册玩家
	//							5 等级范围如1,99
	//							6 注册时间范围。如1940-01-02 20:01:00, 1940-01-03 20:01:00 
	//							7 登录时间范围 同6
	// receiver -> arg7 收件人列表
	// 
	gm_public_mail_notify = server_start + 0x1001,		// GM发送全服邮件 12289
	err_message_common_ret = 0x1002,	// 消息处理错误： 4098
	gm_test_message_notify = server_start + 0x1003,// GM测试消息 12291
	gm_message_ret = 0x1004,				  // GM消息 12292
	gm_message_req = server_start + 0x1004,	  // GM消息 12292
	
	player_login_chat_server = server_start + 0x1100,//	玩家登录聊天服务器
	player_login_chat_server_ret = 0x1100,

	// 触宝SDK相关
	wt_group_id_changed_push = 0x1200,			//	触宝组id变更推送[:4608]
	wt_init_user_id_req = server_start + 0x1201,//	初始化触宝玩家信息[12801:4609]
	wt_init_user_id_ret = 0x1201,				//	初始化触宝玩家信息[12801:4609]
	wt_get_friend_group_id_list_req = server_start + 0x1202,//	获取玩家触宝好友组id列表[12802:4610]
	wt_get_friend_group_id_list_ret = 0x1202,				//	获取玩家触宝好友组id列表[12802:4610]
	wt_get_player_show_info_req = server_start + 0x1203,//	获取触宝玩家显示信息[12803:4611]
	wt_get_player_show_info_ret = 0x1203,				//	获取触宝玩家显示信息[12803:4611]

	gate_close_client_fd_req = server_start + 0x1301,	// 玩家主动断开game消息
	gate_close_client_fd_ret = 0x1301,

	//红点协议
	common_red_flag_label_notify = 0x3005,//标签红点协议
	common_red_flag_label_friend_click_req = 0x3006,// 点击好友头像时发送的协议，用于红点取消，没有回复
	common_red_flag_label_chat_req = 0x3007,//收到聊天、语音信息时发送的协议，用于红点同步，没有回复
	common_red_flag_label_friend_notify = 0x3008,//设定好友头像红点状态的协议，推送

	map_player_login_req = 0x8001,// 0x8001(32769)
	map_player_login_ret = 0x8002, // 0x8002(32770)
	map_player_login_again_notify = 0x8003,	// 通知用户再次注册到mapSrv 32771
	map_player_change_something_notify = 0x8004,// 用户数值改变通知 32771
	m2g_kill_some_one = 0x8005,					// map 发送给game
	

	//新客户端协议从0x9000开始往后加最大到0xCFFF
	//如客户端请求0x9000,回复0x9001,不要用server_start了，不好维护

	union_boss_start_notify = 0x9000,	//公会boss开始通知
	union_enter_boss_request = 0x9001,	//进入公会boss请求
	union_enter_boss_response = 0x9002,	//进入公会boss回复
	union_boss_info_notify = 0x9003,	//公会boss信息改变通知，如血量
	union_boss_damage_report = 0x9004,	//对公会boss造成血量上报
	union_boss_info_request = 0x9005,	//公会boss信息请求，打开UI界面的时候请求获取公会boss的数据，血量，boss等级
	union_boss_info_response = 0x9006,	
	union_boss_die_notify = 0x9007,		//boss死亡通知
	union_data_save_request = 0x9008,	//公会首杀数据存储


	// 队伍相关消息
	team_create_request = 0x9100,		//队伍创建请求
	team_create_response = 0x9101,
	team_join_request = 0x9102,			//加入队伍请求
	team_join_response = 0x9103,
	team_leave_request = 0x9104,		//离开队伍请求
	team_leave_response = 0x9105,		
	team_kickout_request = 0x9106,		//踢出队伍请求
	team_kickout_response = 0x9107,		//踢出队伍回复
	team_invite_request = 0x9108,		//邀请玩家加入
	team_invite_response = 0x9109,		//邀请玩家加入
	team_reply_invite_request = 0x910A,	//应答邀请（被邀请者，是队员发起的）
	team_reply_invite_response = 0x910B,	//应答邀请
	team_reply_apply_request = 0x910C,	//应答申请（队长发起的）
	team_reply_apply_response = 0x910D,	//应答申请
	team_clear_apply_request = 0x910E,	//一键清除申请列表
	team_clear_apply_response = 0x9110, //
	team_set_request = 0x9111,			//队伍设置
	team_set_response = 0x9112,			//队伍设置
	team_appoint_captain_request = 0x9113,//任命队长
	team_appoint_captain_response = 0x9114,//任命队长
	team_list_request = 0x9115,			//获取队伍列表
	team_list_response = 0x9116,			//获取队伍列表
	team_init_notify = 0x9117,			//初始化队伍
	team_apply_notify = 0x9118,			//队伍申请列表通知
	team_member_leave_notify = 0x9119,	//玩家离开队伍通知
	team_base_data_notify = 0x911A,		//队伍基础信息同步
	team_invite_notify = 0x911B,		//队伍邀请通知
	team_member_join_notify = 0x911C,	//成员加入队伍通知
	team_set_notify = 0x911D,			//队伍设置改变
	team_prepare_formation_request = 0x911E,//队伍布阵请求
	team_prepare_formation_response = 0x9120,//队伍布阵回复
	team_enter_dungeon_request = 0x9121,//进入组队副本请求(队长请求)
	team_enter_dungeon_response = 0x9122,
	team_enter_dungeon_notify = 0x9123,	//给所有人的进入副本通知
	team_boss_info_notify = 0x9124,		//boss血量同步给队伍中的玩家
	team_member_damage_report = 0x9125,	//成员血量上报
	team_boss_end_notify = 0x9126,		//boss结束通知
	team_boss_prepare_request = 0x9127,	//队员准备请求
	team_boss_prepare_response = 0x9128,//队员准备回复
	team_boss_prepare_notify = 0x9129,	//队员准备通知
	team_invite_list_request = 0x912A,	//请求邀请列表
	team_invite_list_response = 0x912B,	//邀请列表回复
	team_prepare_formation_notify = 0x912C,//队伍布阵通知
	team_boss_die_notify = 0x912D,		//boss死亡通知
	team_info_request = 0x912E,			//队伍数据请求
	team_info_response = 0x9130,		//队伍数据请求
	team_reject_allinvite_request = 0x9131,			//玩家拒绝全部邀请
	team_reject_allinvite_response = 0x9132,		//玩家拒绝全部邀请
	team_change_hero_report = 0x9133,		//玩家切换英雄或者英雄死亡被动换英雄
	team_change_hero_notify = 0x9134,		//玩家切换英雄或者英雄死亡被动换英雄
	team_dungeon_leave_team_notify = 0x9135,//队伍在打副本的时候，队员离线给队伍玩家推送数据，只做头像维护用，不能用来维护队伍数据

	activity_player_info_request = 0x9150,	// 玩家活动次数信息请求
	activity_player_info_response = 0x9151,	// 玩家活动次数信息请求

	// 邮件 db 2 game request message id
	d2g_player_mail_list_server = 0x9200,	// 邮件列表db 2 game
	d2g_read_mail_server = 0x9201,			// 读取邮件详情  db 2 game
	d2g_distill_mail_item_server = 0x9202,	// 获取邮件附件 db 2 game
	d2g_delete_mail_server = 0x9203,		// 删除邮件 db 2 game
	d2g_new_mail_count_server = 0x9204,		// 新邮件数量 db 2 game
	d2g_change_mail_newf_server = 0x9205,	// 批量更改邮件已读 db 2 game
	d2g_send_mail_server = 0x9206,			// 领取邮件

	common_friend_notify_push = 0x9210,		// 好友上线下线推送消息

	game_server_surprise_recharge_save_request = 0xA000,	//游戏服务惊喜充值保存请求 game 2 db 

	max_client_msg
};

enum EnPlatformMsg
{
	http_recharge_finished_request = 0xF001		// http 发送充值成功
};

enum EnServerMsg
{
	db_server_start = 0x5000,
	db_general_message = db_server_start,// 与Database服务器通讯消息定义
	register_to_db_server = db_server_start,//注册信息到中心服务器
	db_reload_player_info_to_redis_req = db_server_start + 1,					 // 初始化某用户信息至redis 20481
	db_reload_player_info_to_redis_ret = db_reload_player_info_to_redis_req + 1, // 初始化某用户信息至redis 20481
	db_register_player_info_to_redis_req = db_server_start + 3,						 // 注册并初始化某用户信息至redis 20483
	db_register_player_info_to_redis_ret = db_register_player_info_to_redis_req + 1, // 注册并初始化某用户信息至redis 20483
	db_update_or_insert_info_notify = db_server_start + 11,// 插入或更新数据 20491
	db_select_some_info_req = db_server_start + 13,		   // 查询数据，返回数据列表 20493
	db_select_some_info_ret = db_select_some_info_req + 1, // 查询数据，返回数据列表 20493
	db_select_single_info_req = db_server_start + 15,		   // 查询数据，返回单个数据 20495
	db_select_single_info_ret = db_select_single_info_req + 1, // 查询数据，返回单个数据 20495
	db_select_info_amount_req = db_server_start + 17,		   // 查询数据，返回数据总个数 20497
	db_select_info_amount_ret = db_select_info_amount_req + 1, // 查询数据，返回数据总个数 20497
	db_update_account_player_list_notify = db_server_start + 19,// 更新角色信息在account中的列表信息 20497
	db_player_add_friend_req = db_server_start + 21,		   // 添加好友请求 20501
	db_player_add_friend_ret = db_player_add_friend_req + 1,   // 添加好友请求 20501
	db_player_allow_add_friend_req = db_server_start + 23,				 // 同意或者拒绝添加好友 20503
	db_player_allow_add_friend_ret = db_player_allow_add_friend_req + 1, // 同意或者拒绝添加好友 20503
	db_player_create_union_req = db_server_start + 25,			   // 创建工会 20505
	db_player_create_union_ret = db_player_create_union_req + 1,   // 创建工会 20505
	db_player_disband_union_req = db_server_start + 27,			   // 解散工会 20507
	db_player_disband_union_ret = db_player_disband_union_req + 1, // 解散工会 20507
	db_player_approve_someone_req = db_server_start + 29,			   // 批准某人进入工会 20509
	db_player_approve_someone_ret = db_player_approve_someone_req + 1, // 批准某人进入工会 20509
	db_union_kickout_someone_req = db_server_start + 31,			   // 踢出某位会员 20511
	db_union_kickout_someone_ret = db_union_kickout_someone_req + 1,   // 踢出某位会员 20511
	db_union_change_someone_position_req = db_server_start + 33,					// 工会会长传位给某人 20513
	db_union_change_someone_position_ret = db_union_change_someone_position_req + 1,// 工会会长传位给某人 20513
	db_union_query_detailed_info_req = db_server_start + 35,				 // 获取某工会详细信息 20515
	db_union_query_detailed_info_ret = db_union_query_detailed_info_req + 1, // 获取某工会详细信息 20515
	db_query_rank_list_req = db_server_start + 37,		   // 排行榜相关列表信息 20517
	db_query_rank_list_ret = db_query_rank_list_req + 1,   // 排行榜相关列表信息 20517
	db_rank_player_info_req = db_server_start + 39,		   // 获取排行榜某用户战队信息 20519
	db_rank_player_info_ret = db_rank_player_info_req + 1, // 获取排行榜某用户战队信息 20519
	db_player_query_arena_list_req = db_server_start + 41,				 // 获取角斗场列表 20521
	db_player_query_arena_list_ret = db_player_query_arena_list_req + 1, // 获取角斗场列表 20521
	db_player_arena_settlement_req = db_server_start + 43,				 // 角斗场战斗结算 20523
	db_player_arena_settlement_ret = db_player_arena_settlement_req + 1, // 角斗场战斗结算 20523
	db_search_moba_list_req = db_server_start + 45,		   // 获取竞技场列表 20525
	db_search_moba_list_ret = db_search_moba_list_req + 1, // 获取竞技场列表 20525
	db_player_mail_list_req = db_server_start + 47,		   // 获取邮件列表 20527
	db_player_mail_list_ret = db_player_mail_list_req + 1, // 获取邮件列表 20527
	db_init_arena_fight_req = db_server_start + 49,		   // 初始化角斗场战斗 20529
	db_init_arena_fight_ret = db_init_arena_fight_req + 1, // 初始化角斗场战斗 20529
	db_player_donation_req = db_server_start + 51,		   // 工会捐献申请 20531
	db_player_donation_ret = db_player_donation_req + 1,   // 工会捐献申请 20531
	db_union_uplevel_info_req = db_server_start + 53,		  // 工会升级 20533
	db_union_uplevel_info_ret = db_union_uplevel_info_req + 1,// 工会升级 20533
	db_union_list_req = db_server_start + 55,				  // 获取指定工会列表 20535
	db_union_list_ret = db_union_list_req + 1,				  // 获取指定工会列表 20535
	db_search_someone_union_req = db_server_start + 57,			  // 按条件搜索工会 20537
	db_search_someone_union_ret = db_search_someone_union_req + 1,// 按条件搜索工会 20537
	db_union_all_member_req = db_server_start + 59,			  // 获取当前工会会员列表 20539
	db_union_all_member_ret = db_union_all_member_req + 1,	  // 获取当前工会会员列表 20539
	db_gamesrv_lot_action_notify = db_server_start + 67,	// GameSrv大批量处理数据请求 20547
	db_update_area_role_count_notify = db_server_start + 68,// 更新某游戏区的在线人数 20548
	db_player_friend_list_req = db_server_start + 69,		// 获取好友列表 20549
	db_player_friend_list_ret = db_player_friend_list_req + 1,	// 获取好友列表 20549
	db_init_friend_fight_req = db_server_start + 71,		  // 好友切磋请求 20551
	db_init_friend_fight_ret = db_init_friend_fight_req + 1,  // 好友切磋请求 20551
	db_friend_quick_action_req = db_server_start + 73,			// 一键操作 20553
	db_friend_quick_action_ret = db_friend_quick_action_req + 1,// 一键操作 20553
	db_query_player_info_req = db_server_start + 75,			// 随时查看某用户信息 20555
	db_query_player_info_ret = db_query_player_info_req + 1,	// 随时查看某用户信息 20555
	db_exchange_cdkey_item_req = db_server_start + 77,			// 用CDKEY兑换物品 20557
	db_exchange_cdkey_item_ret = db_exchange_cdkey_item_req + 1,// 用CDKEY兑换物品 20557
	db_delete_friend_req = db_server_start + 79,				// 删除好友 20559
	db_delete_friend_ret = db_delete_friend_req + 1,			// 删除好友 20559
	db_save_player_info_notify = db_server_start + 81,			// 保存用户信息 20561
	db_player_rechanged_notify = db_server_start + 82,			// 用户充值完成通知 20562
	db_world_boss_rank_list_req = db_server_start + 83,			  // 获取世界BOSS排行榜列表 20563
	db_world_boss_rank_list_ret = db_world_boss_rank_list_req + 1,// 获取世界BOSS排行榜列表 20563
	db_draw_first_rechange_box_req = db_server_start + 85,			// 领取首充豪华大礼包  20564
	db_draw_first_rechange_box_ret = db_draw_first_rechange_box_req + 1,// 领取首充豪华大礼包  20564
	db_worldboss_list_req = db_server_start + 87,				// 获取世界BOSS列表 20564
	db_worldboss_list_ret = db_worldboss_list_req + 1,			// 获取世界BOSS列表 20564
	db_world_boss_rank_info_req = db_server_start + 89,			  // 某世界BOSS排行榜用户信息 20569
	db_world_boss_rank_info_ret = db_world_boss_rank_info_req + 1,// 某世界BOSS排行榜用户信息 20569
	db_init_player_expediton_list_req = db_server_start + 91,				  // 初始化远征列表信息 20624
	db_init_player_expediton_list_ret = db_init_player_expediton_list_req + 1,// 初始化远征列表信息 20624
	db_update_player_expediton_gate_req = db_server_start + 93,					  //更新远征关卡 20625
	db_update_player_expediton_gate_ret = db_update_player_expediton_gate_req + 1,//更新远征关卡 20625
	db_update_player_expediton_info_req = db_server_start + 95,					  //更新远征关卡 20626
	db_update_player_expediton_info_ret = db_update_player_expediton_info_req + 1,//更新远征关卡 20626

	db_msg_end = 0x5fff, // db最大值


	//新服务器之间协议从0xD000开始往后加
	//如客户端请求0xD000,回复0xD001,不要用server_start了，不好维护
	G2M_REGISTER_TO_MAP_REQUEST = 0xD000,	//gameserver启动后，向mapserver注册

	G2M_PLAYER_HERO_INFO_CHANGE_REQUEST = 0xD001,//玩家英雄信息变化，通知map
	G2M_PLAYER_PET_STATUS_CHANGE_REQUEST = 0xD002,//玩家宠物或者坐骑状态变化，通知map
	G2D_PLAYER_OFFLINE_SAVE_REQ = 0xD003,
	G2D_PLAYER_SAVE_REQ = 0xD004,
	G2M_HEART_REQUEST					 = 0xD005,// game-map心跳
	M2G_HEART_RET						 = 0xD006,// map-game返回
	G2M_SEND_PLAYER_LOGIN_INFO			 = 0xD007,// game-map同步玩家登录信息
	C2G_SAVE_PLAYER_OFFLINE_CHAT		 = 0xD008,// chat-game存储玩家离线消息
	P2B_SAVE_BEHAVIOR_LOG                = 0xD009,// proxy-behavior 存储玩家行为数据

	PROXY_PING = 0xCFFF,		// proxy ping 消息
	register_to_proxy = 0xD00A,//像proxy注册						   
	ID_S2P_PING_REQUEST = 0xD00B,
	ID_P2S_PING_RESPONSE = 0xD00C,
	g2l_gameserver_start_notify = 0xd00d,
	ID_DBSqlExecResquest = 0xD00E,
	ID_DBSqlExecResponse = 0xD010,
	register_to_platform = 0xD011,//平台服务器向平台proxy注册
	register_gate_to_game = 0xD012, //gate 注册到game
	register_gate_to_map = 0xD013, //gate 注册到map
	//register_gate_to_chat = 0xD014, //gate 注册到chat
	M2G_REVIVE_EVENT = 0xD014,		  // map 2 game 复活通知
	M2G_SCENE_FOR_CLIENT = 0xD015,	  // map 2 game 场景切换通知
	M2G_SYNC_HERO_REQUEST = 0xD016,   // map 2 game 同步英雄数据给战斗属性数据给map

	// 登录服务器相关协议
	lg_server_start = 0xD100,
	register_to_lg_server = 0xD100,// gameserver启动后，向loginserver注册
	lg_check_account_req = 0xD101, // 暂时未使用
	lg_check_account_ret = 0xD102, // 暂时未使用
	lg_get_gamesrv_info_req = 0xD103, // 暂时未使用
	lg_get_gamesrv_info_ret = 0xD104, // 暂时未使用
	lg_create_player_req = 0xD105,
	lg_create_player_ret = 0xD106,
	lg_player_login_req = 0xD107,
	lg_player_login_ret = 0xD108,
	g2l_player_count_report = 0xD109,//gameserver玩家数量上报给login


	// chat server 消息
	ct_server_start = 0xD200,			// (53760)
	ct_ct2gm_player_chat_event = 0xD201,		// 聊天信息(53761)

	// 邮件 server to server
	g2d_player_mail_list_server = 0xD300,	//邮件列表，从game到 db 的请求消息
	g2d_read_mail_server = 0xD301,			//读取邮件详情，game to db 的请求
	g2d_distill_mail_item_server = 0xD302,	//获取邮件附件 game to db 的请求
	g2d_delete_mail_server = 0xD303,		//删除邮件  game to db 请求
	g2d_new_mail_count_server = 0xD304,		//新邮件数量 game to db
	g2d_change_mail_newf_server = 0xD305,	//批量更改已读邮件
	g2d_send_mail_server = 0xD306,			//领取邮件

	other_server_msg_end = 0xDFFF, //结束消息最大值
	client_self_event_no_server_support=0xE000, // 客户端自己事件触发消息，不需要服务器支持，但服务器不能用这个消息id
};

static std::unordered_map< int, std::string > StaticMsgerHumanName={

	std::make_pair< int, std::string >( client_disconnect_notify, "client_disconnect_notify" ),
	std::make_pair< int, std::string >( lua_general_message_req, "lua_general_message_req" ),
	std::make_pair< int, std::string >( lua_gm_message_req, "lua_gm_message_req" ),
	std::make_pair< int, std::string >( server_slot_check_notify, "server_slot_check_notify" ),
	std::make_pair< int, std::string >( c_general_3i2s, "c_general_3i2s" ),
	std::make_pair< int, std::string >( s_general_3i2s, "s_general_3i2s" ),
	std::make_pair< int, std::string >( player_ping_ret, "player_ping_ret" ),
	std::make_pair< int, std::string >( player_ping_req, "player_ping_req" ),
	std::make_pair< int, std::string >( player_chat_ping_ret, "player_chat_ping_ret" ),
	std::make_pair< int, std::string >( player_chat_ping_req, "player_chat_ping_req" ),
	std::make_pair< int, std::string >( player_relay_ret, "player_relay_ret" ),
	std::make_pair< int, std::string >( player_relay_req, "player_relay_req" ),
	std::make_pair< int, std::string >( kick_player_client_notify, "kick_player_client_notify" ),
	std::make_pair< int, std::string >( player_map_ping_ret, "player_map_ping_ret" ),
	std::make_pair< int, std::string >( player_map_ping_req, "player_map_ping_req" ),
	std::make_pair< int, std::string >( c_player_enter_scene, "c_player_enter_scene" ),
	std::make_pair< int, std::string >( s_player_enter_scene, "s_player_enter_scene" ),
	std::make_pair< int, std::string >( c_player_leave_scene, "c_player_leave_scene" ),
	std::make_pair< int, std::string >( c_player_change_scene, "c_player_change_scene" ),
	std::make_pair< int, std::string >( s_player_change_scene, "s_player_change_scene" ),
	std::make_pair< int, std::string >( c_player_load_scene_finished, "c_player_load_scene_finished" ),
	std::make_pair< int, std::string >( s_player_load_scene_finished, "s_player_load_scene_finished" ),
	std::make_pair< int, std::string >( c_player_move, "c_player_move" ),
	std::make_pair< int, std::string >( player_walk, "player_walk" ),
	std::make_pair< int, std::string >( unregiste_player_walk_info, "unregiste_player_walk_info" ),
	std::make_pair< int, std::string >( delete_walk_object, "delete_walk_object" ),
	std::make_pair< int, std::string >( add_walk_object, "add_walk_object" ),
	std::make_pair< int, std::string >( c_update_player_info, "c_update_player_info" ),
	std::make_pair< int, std::string >( c_update_map_element_info, "c_update_map_element_info" ),
	std::make_pair< int, std::string >( s_update_player_orientation, "s_update_player_orientation" ),
	std::make_pair< int, std::string >( c_player_data_init_finished, "c_player_data_init_finished" ),
	std::make_pair< int, std::string >( s_player_rocker_state, "s_player_rocker_state" ),
	std::make_pair< int, std::string >( add_walk_object_npc, "add_walk_object_npc" ),
	std::make_pair< int, std::string >( s_set_player_walk_info, "s_set_player_walk_info" ),
	std::make_pair< int, std::string >( common_ranklist_ret, "common_ranklist_ret" ),
	std::make_pair< int, std::string >( common_ranklist_req, "common_ranklist_req" ),
	std::make_pair< int, std::string >(common_arena_rank_mode_req, "common_arena_rank_mode_req"),
	std::make_pair< int, std::string >(common_arena_rank_mode_ret, "common_arena_rank_mode_ret"),
	std::make_pair< int, std::string >( c_player_buffer_specified_part, "c_player_buffer_specified_part" ),
	std::make_pair< int, std::string >( c_player_Fixed_info_ret, "c_player_Fixed_info_ret" ),
	std::make_pair< int, std::string >( c_player_Fixed_info_req, "c_player_Fixed_info_req" ),
	std::make_pair< int, std::string >( register_to_center_server, "register_to_center_server" ),
	std::make_pair< int, std::string >( gc_player_register_to_center_server, "gc_player_register_to_center_server" ),
	std::make_pair< int, std::string >( common_click_npc_req, "common_click_npc_req" ),
	std::make_pair< int, std::string >( common_open_mission_dialog_ret, "common_open_mission_dialog_ret" ),
	std::make_pair< int, std::string >( common_open_mission_dialog_req, "common_open_mission_dialog_req" ),
	std::make_pair< int, std::string >( common_mission_list_ret, "common_mission_list_ret" ),
	std::make_pair< int, std::string >( common_mission_list_req, "common_mission_list_req" ),
	std::make_pair< int, std::string >( common_mission_complete_list_ret, "common_mission_complete_list_ret" ),
	std::make_pair< int, std::string >( common_mission_complete_list_req, "common_mission_complete_list_req" ),
	std::make_pair< int, std::string >( update_mission_info, "update_mission_info" ),
	std::make_pair< int, std::string >( update_mission_complete, "update_mission_complete" ),
	std::make_pair< int, std::string >( common_notice_reward_dialogue_common_ret, "common_notice_reward_dialogue_common_ret" ),
	std::make_pair< int, std::string >( common_notice_common_ret, "common_notice_common_ret" ),
	std::make_pair< int, std::string >( common_mission_dungeon_complete_req, "common_mission_dungeon_complete_req" ),
	std::make_pair< int, std::string >( common_mission_collect_complete_req, "common_mission_collect_complete_req" ),
	std::make_pair< int, std::string >( common_mission_killmonster_complete_req, "common_mission_killmonster_complete_req" ),
	std::make_pair< int, std::string >( common_mission_move_complete_req, "common_mission_move_complete_req" ),
	std::make_pair< int, std::string >( common_notice_common_ex_ret, "common_notice_common_ex_ret" ),
	std::make_pair< int, std::string >( common_get_reward_props_req, "common_get_reward_props_req" ),
	std::make_pair< int, std::string >( common_mission_box_info_req, "common_mission_box_info_req" ),
	std::make_pair< int, std::string >( common_mission_box_info_ret, "common_mission_box_info_ret" ),
	std::make_pair< int, std::string >( common_offer_reward_mission_list_ret, "common_offer_reward_mission_list_ret" ),
	std::make_pair< int, std::string >( common_offer_reward_mission_new_list_req, "common_offer_reward_mission_new_list_req" ),
	std::make_pair< int, std::string >( common_offer_reward_mission_operation_req, "common_offer_reward_mission_operation_req" ),
	std::make_pair< int, std::string >( common_update_mission_item_info_ret, "common_update_mission_item_info_ret" ),
	std::make_pair< int, std::string >( common_accept_mission_target_info_req, "common_accept_mission_target_info_req" ),
	std::make_pair< int, std::string >( common_ask_offer_reward_mission_req, "common_ask_offer_reward_mission_req" ),
	std::make_pair< int, std::string >( common_ask_daily_mission_req, "common_ask_daily_mission_req" ),
	std::make_pair< int, std::string >( common_ask_daily_mission_ret, "common_ask_daily_mission_ret" ),
	std::make_pair< int, std::string >( common_ask_branch_mission_req, "common_ask_branch_mission_req" ),
	std::make_pair< int, std::string >( common_ask_branch_mission_ret, "common_ask_branch_mission_ret" ),
	std::make_pair< int, std::string >( common_title_list_ret, "common_title_list_ret" ),
	std::make_pair< int, std::string >( common_title_list_req, "common_title_list_req" ),
	std::make_pair< int, std::string >( common_title_wear_or_takeoff_ret, "common_title_wear_or_takeoff_ret" ),
	std::make_pair< int, std::string >( common_title_wear_or_takeoff_req, "common_title_wear_or_takeoff_req" ),
	std::make_pair< int, std::string >( common_wild_dig_operation_ret, "common_wild_dig_operation_ret" ),
	std::make_pair< int, std::string >( common_wild_dig_operation_req, "common_wild_dig_operation_req" ),
	std::make_pair< int, std::string >( c_player_attack_ret, "c_player_attack_ret" ),
	std::make_pair< int, std::string >( s_player_attack_req, "s_player_attack_req" ),
	std::make_pair< int, std::string >( c_lose_blood_ret, "c_lose_blood_ret" ),
	std::make_pair< int, std::string >( s_lose_blood_req, "s_lose_blood_req" ),
	std::make_pair< int, std::string >( c_someone_dead_ret, "c_someone_dead_ret" ),
	std::make_pair< int, std::string >( c_monster_attack_ret, "c_monster_attack_ret" ),
	std::make_pair< int, std::string >( s_set_player_hp, "s_set_player_hp" ),
	std::make_pair< int, std::string >( c_player_revive_ret, "c_player_revive_ret" ),
	std::make_pair< int, std::string >( s_player_revive_req, "s_player_revive_req" ),
	std::make_pair< int, std::string >( c_target_zero_blood_push, "c_target_zero_blood_push" ),
	std::make_pair< int, std::string >( login_check_account_req, "login_check_account_req" ),
	std::make_pair< int, std::string >( login_check_account_ret, "login_check_account_ret" ),
	std::make_pair< int, std::string >( login_get_gamesrv_info_req, "login_get_gamesrv_info_req" ),
	std::make_pair< int, std::string >( login_get_gamesrv_info_ret, "login_get_gamesrv_info_ret" ),
	std::make_pair< int, std::string >( login_account_login_queue_req, "login_account_login_queue_req" ),
	std::make_pair< int, std::string >( login_account_login_queue_ret, "login_account_login_queue_ret" ),
	std::make_pair< int, std::string >( login_create_player_req, "login_create_player_req" ),
	std::make_pair< int, std::string >( login_create_player_ret, "login_create_player_ret" ),
	std::make_pair< int, std::string >( login_player_login_req, "login_player_login_req" ),
	std::make_pair< int, std::string >( login_player_login_ret, "login_player_login_ret" ),
	std::make_pair< int, std::string >( game_player_login_req,  "game_player_login_req"),
	std::make_pair< int, std::string >( game_player_login_ret,  "game_player_login_ret"),
	std::make_pair< int, std::string >( game_create_player_req, "game_create_player_req"),
	std::make_pair< int, std::string >( game_create_player_ret, "game_create_player_ret"),
	std::make_pair< int, std::string >( login_change_name_req, "login_change_name_req" ),
	std::make_pair< int, std::string >( login_change_name_ret, "login_change_name_ret" ),
	std::make_pair< int, std::string >( login_change_photo_frame_req, "login_change_photo_frame_req" ),
	std::make_pair< int, std::string >( login_change_photo_frame_ret, "login_change_photo_frame_ret" ),
	std::make_pair< int, std::string >( login_load_player_info_req, "login_load_player_info_req" ),
	std::make_pair< int, std::string >( login_load_player_info_ret, "login_load_player_info_ret" ),
	std::make_pair< int, std::string >( login_force_quit_game_notify, "login_force_quit_game_notify" ),
	std::make_pair< int, std::string >( login_player_quit_game_notify, "login_player_quit_game_notify" ),
	std::make_pair< int, std::string >( common_backpack_list_req, "common_backpack_list_req" ),
	std::make_pair< int, std::string >( common_backpack_list_ret, "common_backpack_list_ret" ),
	std::make_pair< int, std::string >( common_sell_item_req, "common_sell_item_req" ),
	std::make_pair< int, std::string >( common_sell_item_ret, "common_sell_item_ret" ),
	std::make_pair< int, std::string >( common_use_item_req, "common_use_item_req" ),
	std::make_pair< int, std::string >( common_use_item_ret, "common_use_item_ret" ),
	std::make_pair< int, std::string >( common_buy_action_point_req, "common_buy_action_point_req" ),
	std::make_pair< int, std::string >( common_buy_action_point_ret, "common_buy_action_point_ret" ),
	std::make_pair< int, std::string >( common_shop_goods_list_req, "common_shop_goods_list_req" ),
	std::make_pair< int, std::string >( common_shop_goods_list_ret, "common_shop_goods_list_ret" ),
	std::make_pair< int, std::string >( common_buy_shop_goods_req, "common_buy_shop_goods_req" ),
	std::make_pair< int, std::string >( common_buy_shop_goods_ret, "common_buy_shop_goods_ret" ),
	std::make_pair< int, std::string >( common_refresh_shop_goods_req, "common_refresh_shop_goods_req" ),
	std::make_pair< int, std::string >( common_refresh_shop_goods_ret, "common_refresh_shop_goods_ret" ),
	std::make_pair< int, std::string >( common_lucky_gamble_req, "common_lucky_gamble_req" ),
	std::make_pair< int, std::string >( common_lucky_gamble_ret, "common_lucky_gamble_ret" ),
	std::make_pair< int, std::string >( common_lucky_gamble_list_req, "common_lucky_gamble_list_req" ),
	std::make_pair< int, std::string >( common_lucky_gamble_list_ret, "common_lucky_gamble_list_ret" ),
	std::make_pair< int, std::string >( common_update_item_list_req, "common_update_item_list_req" ),
	std::make_pair< int, std::string >( common_update_item_list_ret, "common_update_item_list_ret" ),
	std::make_pair< int, std::string >( common_buy_someone_ret, "common_buy_someone_ret" ),
	std::make_pair< int, std::string >( common_buy_someone_req, "common_buy_someone_req" ),
	std::make_pair< int, std::string >( common_exchange_cdkey_item_ret, "common_exchange_cdkey_item_ret" ),
	std::make_pair< int, std::string >( common_exchange_cdkey_item_req, "common_exchange_cdkey_item_req" ),
	std::make_pair< int, std::string >( common_player_hero_list_req, "common_player_hero_list_req" ),
	std::make_pair< int, std::string >( common_player_hero_list_ret, "common_player_hero_list_ret" ),
	std::make_pair< int, std::string >( common_player_hero_info_req, "common_player_hero_info_req" ),
	std::make_pair< int, std::string >( common_player_hero_info_ret, "common_player_hero_info_ret" ),
	std::make_pair< int, std::string >( common_assign_fight_hero_req, "common_assign_fight_hero_req" ),
	std::make_pair< int, std::string >( common_assign_fight_hero_ret, "common_assign_fight_hero_ret" ),
	std::make_pair< int, std::string >( common_soulgem_exchange_hero_req, "common_soulgem_exchange_hero_req" ),
	std::make_pair< int, std::string >( common_soulgem_exchange_hero_ret, "common_soulgem_exchange_hero_ret" ),
	std::make_pair< int, std::string >( common_upgrade_hero_star_req, "common_upgrade_hero_star_req" ),
	std::make_pair< int, std::string >( common_upgrade_hero_star_ret, "common_upgrade_hero_star_ret" ),
	std::make_pair< int, std::string >( common_upgrade_hero_equipment_req, "common_upgrade_hero_equipment_req" ),
	std::make_pair< int, std::string >( common_upgrade_hero_equipment_ret, "common_upgrade_hero_equipment_ret" ),
	std::make_pair< int, std::string >( common_hero_equipment_volve_req, "common_hero_equipment_volve_req" ),
	std::make_pair< int, std::string >( common_hero_equipment_volve_ret, "common_hero_equipment_volve_ret" ),
	std::make_pair< int, std::string >( common_hero_equipment_compound_req, "common_hero_equipment_compound_req" ),
	std::make_pair< int, std::string >( common_hero_equipment_compound_ret, "common_hero_equipment_compound_ret" ),
	std::make_pair< int, std::string >( common_upgrade_hero_grade_req, "common_upgrade_hero_grade_req" ),
	std::make_pair< int, std::string >( common_upgrade_hero_grade_ret, "common_upgrade_hero_grade_ret" ),
	std::make_pair< int, std::string >( common_hero_skill_list_req, "common_hero_skill_list_req" ),
	std::make_pair< int, std::string >( common_hero_skill_list_ret, "common_hero_skill_list_ret" ),
	std::make_pair< int, std::string >( common_upgrade_hero_skill_req, "common_upgrade_hero_skill_req" ),
	std::make_pair< int, std::string >( common_upgrade_hero_skill_ret, "common_upgrade_hero_skill_ret" ),
	std::make_pair< int, std::string >( common_reset_hero_skill_req, "common_reset_hero_skill_req" ),
	std::make_pair< int, std::string >( common_reset_hero_skill_ret, "common_reset_hero_skill_ret" ),
	std::make_pair< int, std::string >( common_upgrade_hero_level_req, "common_upgrade_hero_level_req" ),
	std::make_pair< int, std::string >( common_upgrade_hero_level_ret, "common_upgrade_hero_level_ret" ),
	std::make_pair< int, std::string >( common_hero_equipment_list_req, "common_hero_equipment_list_req" ),
	std::make_pair< int, std::string >( common_hero_equipment_list_ret, "common_hero_equipment_list_ret" ),
	std::make_pair< int, std::string >( common_hero_levelup_notify, "common_hero_levelup_notify" ),
	std::make_pair< int, std::string >( common_player_levelup_notify, "common_player_levelup_notify" ),
	std::make_pair< int, std::string >( common_update_hero_list_ret, "common_update_hero_list_ret" ),
	std::make_pair< int, std::string >( common_update_hero_list_req, "common_update_hero_list_req" ),
	std::make_pair< int, std::string >( common_specified_hero_attrib_ret, "common_specified_hero_attrib_ret" ),
	std::make_pair< int, std::string >( common_specified_hero_attrib_req, "common_specified_hero_attrib_req" ),
	std::make_pair< int, std::string >( common_buy_and_use_hero_skin_ret, "common_buy_and_use_hero_skin_ret" ),
	std::make_pair< int, std::string >( common_buy_and_use_hero_skin_req, "common_buy_and_use_hero_skin_req" ),
	std::make_pair< int, std::string >( common_change_hero_skin_ret, "common_change_hero_skin_ret" ),
	std::make_pair< int, std::string >( common_change_hero_skin_req, "common_change_hero_skin_req" ),
	std::make_pair< int, std::string >(common_up_hero_passive_attr_ret, "common_up_hero_passive_attr_ret"),
	std::make_pair< int, std::string >(common_up_hero_passive_attr_req, "common_up_hero_passive_attr_req"),
	std::make_pair< int, std::string >( common_recommended_friend_list_req, "common_recommended_friend_list_req" ),
	std::make_pair< int, std::string >( common_recommended_friend_list_ret, "common_recommended_friend_list_ret" ),
	std::make_pair< int, std::string >( common_player_friend_list_req, "common_player_friend_list_req" ),
	std::make_pair< int, std::string >( common_player_friend_list_ret, "common_player_friend_list_ret" ),
	std::make_pair< int, std::string >( common_search_friend_req, "common_search_friend_req" ),
	std::make_pair< int, std::string >( common_search_friend_ret, "common_search_friend_ret" ),
	std::make_pair< int, std::string >( common_add_friend_req, "common_add_friend_req" ),
	std::make_pair< int, std::string >( common_add_friend_ret, "common_add_friend_ret" ),
	std::make_pair< int, std::string >( common_delete_friend_req, "common_delete_friend_req" ),
	std::make_pair< int, std::string >( common_delete_friend_ret, "common_delete_friend_ret" ),
	std::make_pair< int, std::string >( common_friend_function_listreq, "common_friend_function_listreq" ),
	std::make_pair< int, std::string >( common_friend_function_listret, "common_friend_function_listret" ),
	std::make_pair< int, std::string >( common_allow_add_friend_req, "common_allow_add_friend_req" ),
	std::make_pair< int, std::string >( common_allow_add_friend_ret, "common_allow_add_friend_ret" ),
	std::make_pair< int, std::string >( common_player_friend_operation_notify, "common_player_friend_operation_notify" ),
	std::make_pair< int, std::string >( common_init_friend_fight_req, "common_init_friend_fight_req" ),
	std::make_pair< int, std::string >( common_init_friend_fight_ret, "common_init_friend_fight_ret" ),
	std::make_pair< int, std::string >( common_friend_fight_settlement_req, "common_friend_fight_settlement_req" ),
	std::make_pair< int, std::string >( common_friend_fight_settlement_ret, "common_friend_fight_settlement_ret" ),
	std::make_pair< int, std::string >( common_friend_quick_action_req, "common_friend_quick_action_req" ),
	std::make_pair< int, std::string >( common_friend_quick_action_ret, "common_friend_quick_action_ret" ),
	std::make_pair< int, std::string >( common_query_player_info_req, "common_query_player_info_req" ),
	std::make_pair< int, std::string >( common_query_player_info_ret, "common_query_player_info_ret" ),
	std::make_pair< int, std::string >( common_player_mail_list_req, "common_player_mail_list_req" ),
	std::make_pair< int, std::string >( common_player_mail_list_ret, "common_player_mail_list_ret" ),
	std::make_pair< int, std::string >( common_read_mail_req, "common_read_mail_req" ),
	std::make_pair< int, std::string >( common_read_mail_ret, "common_read_mail_ret" ),
	std::make_pair< int, std::string >( common_distill_mail_item_req, "common_distill_mail_item_req" ),
	std::make_pair< int, std::string >( common_distill_mail_item_ret, "common_distill_mail_item_ret" ),
	std::make_pair< int, std::string >( common_delete_mail_req, "common_delete_mail_req" ),
	std::make_pair< int, std::string >( common_delete_mail_ret, "common_delete_mail_ret" ),
	std::make_pair< int, std::string >( common_new_mail_count_req, "common_new_mail_count_req" ),
	std::make_pair< int, std::string >( common_new_mail_count_ret, "common_new_mail_count_ret" ),
	std::make_pair< int, std::string >( common_change_mail_newf_req, "common_change_mail_newf_req" ),
	std::make_pair< int, std::string >( common_change_mail_newf_ret, "common_change_mail_newf_ret" ),
	std::make_pair< int, std::string >( common_have_new_mail_notify, "common_have_new_mail_notify" ),
	std::make_pair< int, std::string >( common_timeing_dining_req, "common_timeing_dining_req" ),
	std::make_pair< int, std::string >( common_timeing_dining_ret, "common_timeing_dining_ret" ),
	std::make_pair< int, std::string >( common_everyday_sign_list_req, "common_everyday_sign_list_req" ),
	std::make_pair< int, std::string >( common_everyday_sign_list_ret, "common_everyday_sign_list_ret" ),
	std::make_pair< int, std::string >( common_everyday_sign_req, "common_everyday_sign_req" ),
	std::make_pair< int, std::string >( common_everyday_sign_ret, "common_everyday_sign_ret" ),
	std::make_pair< int, std::string >( common_everyday_sign_reward_req, "common_everyday_sign_reward_req" ),
	std::make_pair< int, std::string >( common_everyday_sign_reward_ret, "common_everyday_sign_reward_ret" ),
	std::make_pair< int, std::string >( common_everyday_sign_again_req, "common_everyday_sign_again_req" ),
	std::make_pair< int, std::string >( common_everyday_sign_again_ret, "common_everyday_sign_again_ret" ),
	std::make_pair< int, std::string >( common_player_level_reward_req, "common_player_level_reward_req" ),
	std::make_pair< int, std::string >( common_player_level_reward_ret, "common_player_level_reward_ret" ),
	std::make_pair< int, std::string >( common_draw_online_reward_req, "common_draw_online_reward_req" ),
	std::make_pair< int, std::string >( common_draw_online_reward_ret, "common_draw_online_reward_ret" ),
	std::make_pair< int, std::string >( common_newbie_reward_req, "common_newbie_reward_req" ),
	std::make_pair< int, std::string >( common_newbie_reward_ret, "common_newbie_reward_ret" ),
	std::make_pair< int, std::string >( common_redpoint_check_notify, "common_redpoint_check_notify" ),
	std::make_pair< int, std::string >( common_lucky_draw_count_req, "common_lucky_draw_count_req" ),
	std::make_pair< int, std::string >( common_lucky_draw_count_ret, "common_lucky_draw_count_ret" ),
	std::make_pair< int, std::string >( common_use_lucky_draw_req, "common_use_lucky_draw_req" ),
	std::make_pair< int, std::string >( common_use_lucky_draw_ret, "common_use_lucky_draw_ret" ),
	std::make_pair< int, std::string >( common_player_chat_msg_req, "common_player_chat_msg_req" ),
	std::make_pair< int, std::string >( common_player_chat_msg_ret, "common_player_chat_msg_ret" ),
	std::make_pair< int, std::string >( common_server_chat_msg_notify, "common_server_chat_msg_notify" ),
	std::make_pair< int, std::string >( player_chat_message, "player_chat_message" ),
	std::make_pair< int, std::string >( player_chat_message_ret, "player_chat_message_ret" ),
	std::make_pair< int, std::string >( common_server_chat_msg_notify_push, "common_server_chat_msg_notify_push" ),
	std::make_pair< int, std::string >( common_server_chat_record_req, "common_server_chat_record_req" ),
	std::make_pair< int, std::string >( common_server_chat_record_ret, "common_server_chat_record_ret" ),
	std::make_pair< int, std::string >( player_friend_chat_message_req, "player_friend_chat_message_req" ),
	std::make_pair< int, std::string >( player_friend_chat_message_ret, "player_friend_chat_message_ret" ),
	std::make_pair< int, std::string >( common_server_chat_friend_msg_notify_push, "common_server_chat_friend_msg_notify_push" ),
	std::make_pair< int, std::string >( player_chat_record_req, "player_chat_record_req" ),
	std::make_pair< int, std::string >( player_chat_record_ret, "player_chat_record_ret" ),
	std::make_pair< int, std::string >( common_msg_notify, "common_msg_notify" ),
	std::make_pair< int, std::string >( pve_search_moba_list_req, "pve_search_moba_list_req" ),
	std::make_pair< int, std::string >( pve_search_moba_list_ret, "pve_search_moba_list_ret" ),
	std::make_pair< int, std::string >( pve_init_moba_fight_req, "pve_init_moba_fight_req" ),
	std::make_pair< int, std::string >( pve_init_moba_fight_ret, "pve_init_moba_fight_ret" ),
	std::make_pair< int, std::string >( pve_start_moba_fight_req, "pve_start_moba_fight_req" ),
	std::make_pair< int, std::string >( pve_start_moba_fight_ret, "pve_start_moba_fight_ret" ),
	std::make_pair< int, std::string >( pve_moba_settlement_req, "pve_moba_settlement_req" ),
	std::make_pair< int, std::string >( pve_moba_settlement_ret, "pve_moba_settlement_ret" ),
	std::make_pair< int, std::string >( pve_draw_moba_reward_req, "pve_draw_moba_reward_req" ),
	std::make_pair< int, std::string >( pve_draw_moba_reward_ret, "pve_draw_moba_reward_ret" ),
	std::make_pair< int, std::string >( pve_query_arena_list_req, "pve_query_arena_list_req" ),
	std::make_pair< int, std::string >( pve_query_arena_list_ret, "pve_query_arena_list_ret" ),
	std::make_pair< int, std::string >( pve_init_arena_fight_req, "pve_init_arena_fight_req" ),
	std::make_pair< int, std::string >( pve_init_arena_fight_ret, "pve_init_arena_fight_ret" ),
	std::make_pair< int, std::string >( pve_start_arena_fight_req, "pve_start_arena_fight_req" ),
	std::make_pair< int, std::string >( pve_start_arena_fight_ret, "pve_start_arena_fight_ret" ),
	std::make_pair< int, std::string >( pve_arena_settlement_req, "pve_arena_settlement_req" ),
	std::make_pair< int, std::string >( pve_arena_settlement_ret, "pve_arena_settlement_ret" ),
	std::make_pair< int, std::string >( pve_throne_list_req, "pve_throne_list_req" ),
	std::make_pair< int, std::string >( pve_throne_list_ret, "pve_throne_list_ret" ),
	std::make_pair< int, std::string >( pve_init_throne_fight_req, "pve_init_throne_fight_req" ),
	std::make_pair< int, std::string >( pve_init_throne_fight_ret, "pve_init_throne_fight_ret" ),
	std::make_pair< int, std::string >( pve_throne_settlement_req, "pve_throne_settlement_req" ),
	std::make_pair< int, std::string >( pve_throne_settlement_ret, "pve_throne_settlement_ret" ),
	std::make_pair< int, std::string >( pve_draw_throne_reward_req, "pve_draw_throne_reward_req" ),
	std::make_pair< int, std::string >( pve_draw_throne_reward_ret, "pve_draw_throne_reward_ret" ),
	std::make_pair< int, std::string >( pve_worldmap_list_req, "pve_worldmap_list_req" ),
	std::make_pair< int, std::string >( pve_worldmap_list_ret, "pve_worldmap_list_ret" ),
	std::make_pair< int, std::string >( pve_dungeon_list_req, "pve_dungeon_list_req" ),
	std::make_pair< int, std::string >( pve_dungeon_list_ret, "pve_dungeon_list_ret" ),
	std::make_pair< int, std::string >( pve_into_dungeon_req, "pve_into_dungeon_req" ),
	std::make_pair< int, std::string >( pve_into_dungeon_ret, "pve_into_dungeon_ret" ),
	std::make_pair< int, std::string >( pve_start_dungeon_fight_req, "pve_start_dungeon_fight_req" ),
	std::make_pair< int, std::string >( pve_start_dungeon_fight_ret, "pve_start_dungeon_fight_ret" ),
	std::make_pair< int, std::string >( pve_dungeon_settlement_req, "pve_dungeon_settlement_req" ),
	std::make_pair< int, std::string >( pve_dungeon_settlement_ret, "pve_dungeon_settlement_ret" ),
	std::make_pair< int, std::string >( pve_draw_dungeon_box_reward_req, "pve_draw_dungeon_box_reward_req" ),
	std::make_pair< int, std::string >( pve_draw_dungeon_box_reward_ret, "pve_draw_dungeon_box_reward_ret" ),
	std::make_pair< int, std::string >( pve_flash_dungeon_req, "pve_flash_dungeon_req" ),
	std::make_pair< int, std::string >( pve_flash_dungeon_ret, "pve_flash_dungeon_ret" ),
	std::make_pair< int, std::string >( pve_eventdungeon_list_req, "pve_eventdungeon_list_req" ),
	std::make_pair< int, std::string >( pve_eventdungeon_list_ret, "pve_eventdungeon_list_ret" ),
	std::make_pair< int, std::string >( pve_into_eventdungeon_req, "pve_into_eventdungeon_req" ),
	std::make_pair< int, std::string >( pve_into_eventdungeon_ret, "pve_into_eventdungeon_ret" ),
	std::make_pair< int, std::string >( pve_start_eventdungeon_req, "pve_start_eventdungeon_req" ),
	std::make_pair< int, std::string >( pve_start_eventdungeon_ret, "pve_start_eventdungeon_ret" ),
	std::make_pair< int, std::string >( pve_eventdungeon_settlement_req, "pve_eventdungeon_settlement_req" ),
	std::make_pair< int, std::string >( pve_eventdungeon_settlement_ret, "pve_eventdungeon_settlement_ret" ),
	std::make_pair< int, std::string >( pve_eventdungeon_flash_req, "pve_eventdungeon_flash_req" ),
	std::make_pair< int, std::string >( pve_eventdungeon_flash_ret, "pve_eventdungeon_flash_ret" ),
	std::make_pair< int, std::string >( pve_reset_elite_dungeon_ret, "pve_reset_elite_dungeon_ret" ),
	std::make_pair< int, std::string >( pve_reset_elite_dungeon_req, "pve_reset_elite_dungeon_req" ),
	std::make_pair< int, std::string >( pve_date_prepare_in_scene_ret, "pve_date_prepare_in_scene_ret" ),
	std::make_pair< int, std::string >( pve_date_prepare_in_scene_req, "pve_date_prepare_in_scene_req" ),
	//std::make_pair< int, std::string >( guide_function_opening_notify, "guide_function_opening_notify" ),
	std::make_pair< int, std::string >( guide_set_state_req, "guide_set_state_req" ),
	std::make_pair< int, std::string >( c_player_guide_info_ret, "c_player_guide_info_ret" ),
	std::make_pair< int, std::string >( s_player_guide_info_req, "s_player_guide_info_req" ),
	std::make_pair< int, std::string >( c_player_manipulate_specified_UI, "c_player_manipulate_specified_UI" ),
	std::make_pair< int, std::string >( guide_ask_for_event_req, "guide_ask_for_event_req" ),
	std::make_pair< int, std::string >( pvp_application_fight_req, "pvp_application_fight_req" ),
	std::make_pair< int, std::string >( pvp_application_fight_ret, "pvp_application_fight_ret" ),
	std::make_pair< int, std::string >( pvp_fight_list_data_notify, "pvp_fight_list_data_notify" ),
	std::make_pair< int, std::string >( pvp_fight_over_req, "pvp_fight_over_req" ),
	std::make_pair< int, std::string >( pvp_fight_over_ret, "pvp_fight_over_ret" ),
	std::make_pair< int, std::string >( union_query_union_list_ret, "union_query_uncion_list_ret" ),
	std::make_pair< int, std::string >( union_query_union_list_req, "union_query_uncion_list_req" ),
	std::make_pair< int, std::string >( union_search_someone_ret, "union_search_someone_ret" ),
	std::make_pair< int, std::string >( union_search_someone_req, "union_search_someone_req" ),
	std::make_pair< int, std::string >( union_create_someone_ret, "union_create_someone_ret" ),
	std::make_pair< int, std::string >( union_create_someone_req, "union_create_someone_req" ),
	std::make_pair< int, std::string >( union_disband_someone_ret, "union_disband_someone_ret" ),
	std::make_pair< int, std::string >( union_disband_someone_req, "union_disband_someone_req" ),
	std::make_pair< int, std::string >( union_application_join_ret, "union_application_join_ret" ),
	std::make_pair< int, std::string >( union_application_join_req, "union_application_join_req" ),
	std::make_pair< int, std::string >( union_query_application_list_ret, "union_query_application_list_ret" ),
	std::make_pair< int, std::string >( union_query_application_list_req, "union_query_application_list_req" ),
	std::make_pair< int, std::string >( union_approve_application_ret, "union_approve_application_ret" ),
	std::make_pair< int, std::string >( union_approve_application_req, "union_approve_application_req" ),
	std::make_pair< int, std::string >( union_exits_someone_ret, "union_exits_someone_ret" ),
	std::make_pair< int, std::string >( union_exits_someone_req, "union_exits_someone_req" ),
	std::make_pair< int, std::string >( union_kickout_someone_ret, "union_kickout_someone_ret" ),
	std::make_pair< int, std::string >( union_kickout_someone_req, "union_kickout_someone_req" ),
	std::make_pair< int, std::string >( union_change_someone_position_ret, "union_change_someone_position_ret" ),
	std::make_pair< int, std::string >( union_change_someone_position_req, "union_change_someone_position_req" ),
	std::make_pair< int, std::string >( union_query_all_member_ret, "union_query_all_member_ret" ),
	std::make_pair< int, std::string >( union_query_all_member_req, "union_query_all_member_req" ),
	std::make_pair< int, std::string >( union_edit_some_info_ret, "union_edit_some_info_ret" ),
	std::make_pair< int, std::string >( union_edit_some_info_req, "union_edit_some_info_req" ),
	std::make_pair< int, std::string >( union_query_detailed_info_ret, "union_query_detailed_info_ret" ),
	std::make_pair< int, std::string >( union_query_detailed_info_req, "union_query_detailed_info_req" ),
	std::make_pair< int, std::string >( union_information_changed_notify, "union_information_changed_notify" ),
	std::make_pair< int, std::string >( union_information_changed_notify_req, "union_information_changed_notify_req" ),
	std::make_pair< int, std::string >( player_union_changed_notify_chat_server, "player_union_changed_notify_chat_server" ),
	std::make_pair< int, std::string >( union_changed_notify_chat_server, "union_changed_notify_chat_server" ),
	std::make_pair< int, std::string >( pet_query_list_ret, "pet_query_list_ret" ),
	std::make_pair< int, std::string >( pet_query_list_req, "pet_query_list_req" ),
	std::make_pair< int, std::string >( pet_change_status_ret, "pet_change_status_ret" ),
	std::make_pair< int, std::string >( pet_change_status_req, "pet_change_status_req" ),
	std::make_pair< int, std::string >( pet_update_pet_list_ret, "pet_update_pet_list_ret" ),
	std::make_pair< int, std::string >( pet_update_pet_list_req, "pet_update_pet_list_req" ),
	std::make_pair< int, std::string >( pet_update_mounts_list_ret, "pet_update_mounts_list_ret" ),
	std::make_pair< int, std::string >( pet_update_mounts_list_req, "pet_update_mounts_list_req" ),
	std::make_pair< int, std::string >( pet_set_defend_status_ret, "pet_set_defend_status_ret" ),
	std::make_pair< int, std::string >( pet_set_defend_status_req, "pet_set_defend_status_req" ),
	std::make_pair< int, std::string >( pve_expedition_info_req, "pve_expedition_info_req" ),
	std::make_pair< int, std::string >( pve_expedition_info_ret, "pve_expedition_info_ret" ),
	std::make_pair< int, std::string >( pve_update_current_gate_req, "pve_update_current_gate_req" ),
	std::make_pair< int, std::string >( pve_update_current_gate_ret, "pve_update_current_gate_ret" ),
	std::make_pair< int, std::string >( pve_expedition_start_req, "pve_expedition_start_req" ),
	std::make_pair< int, std::string >( pve_expedition_start, "pve_expedition_start" ),
	std::make_pair< int, std::string >( pve_expedition_finish_req, "pve_expedition_finish_req" ),
	std::make_pair< int, std::string >( pve_expedition_finish_ret, "pve_expedition_finish_ret" ),
	std::make_pair< int, std::string >( pve_expedition_box_reward_req, "pve_expedition_box_reward_req" ),
	std::make_pair< int, std::string >( pve_expedition_box_reward_ret, "pve_expedition_box_reward_ret" ),
	std::make_pair< int, std::string >( pve_expedition_ready_fight_req, "pve_expedition_ready_fight_req" ),
	std::make_pair< int, std::string >( pve_expedition_ready_fight_ret, "pve_expedition_ready_fight_ret" ),
	std::make_pair< int, std::string >( common_start_rechange_ret, "common_start_rechange_ret" ),
	std::make_pair< int, std::string >( common_start_rechange_req, "common_start_rechange_req" ),
	std::make_pair< int, std::string >( common_rechange_finished_ret, "common_rechange_finished_ret" ),
	std::make_pair< int, std::string >( common_rechange_finished_req, "common_rechange_finished_req" ),
	std::make_pair< int, std::string >( common_draw_first_rechange_box_ret, "common_draw_first_rechange_box_ret" ),
	std::make_pair< int, std::string >( common_draw_first_rechange_box_req, "common_draw_first_rechange_box_req" ),
	std::make_pair< int, std::string >( common_buy_special_card_ret, "common_buy_special_card_ret" ),
	std::make_pair< int, std::string >( common_buy_special_card_req, "common_buy_special_card_req" ),
	std::make_pair< int, std::string >( player_heal_req, "player_heal_req" ),
	std::make_pair< int, std::string >( player_heal_ret, "player_heal_ret" ),
	std::make_pair< int, std::string >(union_query_redpacket_list_req, "union_query_redpacket_list_req"),
	std::make_pair< int, std::string >(union_query_redpacket_list_ret, "union_query_redpacket_list_ret"),
	std::make_pair< int, std::string >(union_get_redpacket_req, "union_get_redpacket_req"),
	std::make_pair< int, std::string >(union_get_redpacket_ret, "union_get_redpacket_ret"),
	std::make_pair< int, std::string >(union_query_redpacket_info_req, "union_query_redpacket_info_req"),
	std::make_pair< int, std::string >(union_query_redpacket_info_ret, "union_query_redpacket_info_ret"),
	std::make_pair< int, std::string >(union_send_redpacket_req, "union_send_redpacket_req"),
	std::make_pair< int, std::string >(union_send_redpacket_ret, "union_send_redpacket_ret"),
	std::make_pair< int, std::string >( common_endless_trial_list_ret, "common_endless_trial_list_ret" ),
	std::make_pair< int, std::string >( common_endless_trial_list_req, "common_endless_trial_list_req" ),
	std::make_pair< int, std::string >( common_init_endless_trial_ret, "common_init_endless_trial_ret" ),
	std::make_pair< int, std::string >( common_init_endless_trial_req, "common_init_endless_trial_req" ),
	std::make_pair< int, std::string >( common_start_endless_trial_ret, "common_start_endless_trial_ret" ),
	std::make_pair< int, std::string >( common_start_endless_trial_req, "common_start_endless_trial_req" ),
	std::make_pair< int, std::string >( common_endless_trial_settlement_ret, "common_endless_trial_settlement_ret" ),
	std::make_pair< int, std::string >( common_endless_trial_settlement_req, "common_endless_trial_settlement_req" ),
	std::make_pair< int, std::string >( common_draw_endless_trial_reward_ret, "common_draw_endless_trial_reward_ret" ),
	std::make_pair< int, std::string >( common_draw_endless_trial_reward_req, "common_draw_endless_trial_reward_req" ),
	std::make_pair< int, std::string >( common_query_online_reward_req, "common_query_online_reward_req" ),
	std::make_pair< int, std::string >( common_query_online_reward_ret, "common_query_online_reward_ret" ),
	std::make_pair< int, std::string >( gm_public_message_notify, "gm_public_message_notify" ),
	std::make_pair< int, std::string >( gm_public_mail_notify, "gm_public_mail_notify" ),
	std::make_pair< int, std::string >( err_message_common_ret, "err_message_common_ret" ),
	std::make_pair< int, std::string >( gm_test_message_notify, "gm_test_message_notify" ),
	std::make_pair< int, std::string >( gm_message_ret, "gm_message_ret" ),
	std::make_pair< int, std::string >( gm_message_req, "gm_message_req" ),
	std::make_pair< int, std::string >( player_login_chat_server, "player_login_chat_server" ),
	std::make_pair< int, std::string >( player_login_chat_server_ret, "player_login_chat_server_ret" ),
	std::make_pair< int, std::string >( wt_group_id_changed_push, "wt_group_id_changed_push" ),
	std::make_pair< int, std::string >( wt_init_user_id_req, "wt_init_user_id_req" ),
	std::make_pair< int, std::string >( wt_init_user_id_ret, "wt_init_user_id_ret" ),
	std::make_pair< int, std::string >( wt_get_friend_group_id_list_req, "wt_get_friend_group_id_list_req" ),
	std::make_pair< int, std::string >( wt_get_friend_group_id_list_ret, "wt_get_friend_group_id_list_ret" ),
	std::make_pair< int, std::string >( wt_get_player_show_info_req, "wt_get_player_show_info_req" ),
	std::make_pair< int, std::string >( wt_get_player_show_info_ret, "wt_get_player_show_info_ret" ),
	std::make_pair< int, std::string >( common_red_flag_label_notify, "common_red_flag_label_notify" ),
	std::make_pair< int, std::string >( common_red_flag_label_friend_click_req, "common_red_flag_label_friend_click_req" ),
	std::make_pair< int, std::string >( common_red_flag_label_chat_req, "common_red_flag_label_chat_req" ),
	std::make_pair< int, std::string >( common_red_flag_label_friend_notify, "common_red_flag_label_friend_notify" ),
	std::make_pair< int, std::string >( map_player_login_req, "map_player_login_req" ),
	std::make_pair< int, std::string >( map_player_login_ret, "map_player_login_ret" ),
	std::make_pair< int, std::string >( map_player_login_again_notify, "map_player_login_again_notify" ),
	std::make_pair< int, std::string >( map_player_change_something_notify, "map_player_change_something_notify" ),




	std::make_pair< int, std::string >( db_general_message, "db_general_message" ),
	std::make_pair< int, std::string >( register_to_db_server, "register_to_db_server" ),
	std::make_pair< int, std::string >( db_reload_player_info_to_redis_req, "db_reload_player_info_to_redis_req" ),
	std::make_pair< int, std::string >( db_reload_player_info_to_redis_ret, "db_reload_player_info_to_redis_ret" ),
	std::make_pair< int, std::string >( db_register_player_info_to_redis_req, "db_register_player_info_to_redis_req" ),
	std::make_pair< int, std::string >( db_register_player_info_to_redis_ret, "db_register_player_info_to_redis_ret" ),
	std::make_pair< int, std::string >( db_update_or_insert_info_notify, "db_update_or_insert_info_notify" ),
	std::make_pair< int, std::string >( db_select_some_info_req, "db_select_some_info_req" ),
	std::make_pair< int, std::string >( db_select_some_info_ret, "db_select_some_info_ret" ),
	std::make_pair< int, std::string >( db_select_single_info_req, "db_select_single_info_req" ),
	std::make_pair< int, std::string >( db_select_single_info_ret, "db_select_single_info_ret" ),
	std::make_pair< int, std::string >( db_select_info_amount_req, "db_select_info_amount_req" ),
	std::make_pair< int, std::string >( db_select_info_amount_ret, "db_select_info_amount_ret" ),
	std::make_pair< int, std::string >( db_update_account_player_list_notify, "db_update_account_player_list_notify" ),
	std::make_pair< int, std::string >( db_player_add_friend_req, "db_player_add_friend_req" ),
	std::make_pair< int, std::string >( db_player_add_friend_ret, "db_player_add_friend_ret" ),
	std::make_pair< int, std::string >( db_player_allow_add_friend_req, "db_player_allow_add_friend_req" ),
	std::make_pair< int, std::string >( db_player_allow_add_friend_ret, "db_player_allow_add_friend_ret" ),
	std::make_pair< int, std::string >( db_player_create_union_req, "db_player_create_union_req" ),
	std::make_pair< int, std::string >( db_player_create_union_ret, "db_player_create_union_ret" ),
	std::make_pair< int, std::string >( db_player_disband_union_req, "db_player_disband_union_req" ),
	std::make_pair< int, std::string >( db_player_disband_union_ret, "db_player_disband_union_ret" ),
	std::make_pair< int, std::string >( db_player_approve_someone_req, "db_player_approve_someone_req" ),
	std::make_pair< int, std::string >( db_player_approve_someone_ret, "db_player_approve_someone_ret" ),
	std::make_pair< int, std::string >( db_union_kickout_someone_req, "db_union_kickout_someone_req" ),
	std::make_pair< int, std::string >( db_union_kickout_someone_ret, "db_union_kickout_someone_ret" ),
	std::make_pair< int, std::string >( db_union_change_someone_position_req, "db_union_change_someone_position_req" ),
	std::make_pair< int, std::string >( db_union_change_someone_position_ret, "db_union_change_someone_position_ret" ),
	std::make_pair< int, std::string >( db_union_query_detailed_info_req, "db_union_query_detailed_info_req" ),
	std::make_pair< int, std::string >( db_union_query_detailed_info_ret, "db_union_query_detailed_info_ret" ),
	std::make_pair< int, std::string >( db_query_rank_list_req, "db_query_rank_list_req" ),
	std::make_pair< int, std::string >( db_query_rank_list_ret, "db_query_rank_list_ret" ),
	std::make_pair< int, std::string >( db_rank_player_info_req, "db_rank_player_info_req" ),
	std::make_pair< int, std::string >( db_rank_player_info_ret, "db_rank_player_info_ret" ),
	std::make_pair< int, std::string >( db_player_query_arena_list_req, "db_player_query_arena_list_req" ),
	std::make_pair< int, std::string >( db_player_query_arena_list_ret, "db_player_query_arena_list_ret" ),
	std::make_pair< int, std::string >( db_player_arena_settlement_req, "db_player_arena_settlement_req" ),
	std::make_pair< int, std::string >( db_player_arena_settlement_ret, "db_player_arena_settlement_ret" ),
	std::make_pair< int, std::string >( db_search_moba_list_req, "db_search_moba_list_req" ),
	std::make_pair< int, std::string >( db_search_moba_list_ret, "db_search_moba_list_ret" ),
	std::make_pair< int, std::string >( db_player_mail_list_req, "db_player_mail_list_req" ),
	std::make_pair< int, std::string >( db_player_mail_list_ret, "db_player_mail_list_ret" ),
	std::make_pair< int, std::string >( db_init_arena_fight_req, "db_init_arena_fight_req" ),
	std::make_pair< int, std::string >( db_init_arena_fight_ret, "db_init_arena_fight_ret" ),
	std::make_pair< int, std::string >( db_player_donation_req, "db_player_donation_req" ),
	std::make_pair< int, std::string >( db_player_donation_ret, "db_player_donation_ret" ),
	std::make_pair< int, std::string >( db_union_uplevel_info_req, "db_union_uplevel_info_req" ),
	std::make_pair< int, std::string >( db_union_uplevel_info_ret, "db_union_uplevel_info_ret" ),
	std::make_pair< int, std::string >( db_union_list_req, "db_union_list_req" ),
	std::make_pair< int, std::string >( db_union_list_ret, "db_union_list_ret" ),
	std::make_pair< int, std::string >( db_search_someone_union_req, "db_search_someone_union_req" ),
	std::make_pair< int, std::string >( db_search_someone_union_ret, "db_search_someone_union_ret" ),
	std::make_pair< int, std::string >( db_union_all_member_req, "db_union_all_member_req" ),
	std::make_pair< int, std::string >( db_union_all_member_ret, "db_union_all_member_ret" ),
	std::make_pair< int, std::string >( db_gamesrv_lot_action_notify, "db_gamesrv_lot_action_notify" ),
	std::make_pair< int, std::string >( db_update_area_role_count_notify, "db_update_area_role_count_notify" ),
	std::make_pair< int, std::string >( db_player_friend_list_req, "db_player_friend_list_req" ),
	std::make_pair< int, std::string >( db_player_friend_list_ret, "db_player_friend_list_ret" ),
	std::make_pair< int, std::string >( db_init_friend_fight_req, "db_init_friend_fight_req" ),
	std::make_pair< int, std::string >( db_init_friend_fight_ret, "db_init_friend_fight_ret" ),
	std::make_pair< int, std::string >( db_friend_quick_action_req, "db_friend_quick_action_req" ),
	std::make_pair< int, std::string >( db_friend_quick_action_ret, "db_friend_quick_action_ret" ),
	std::make_pair< int, std::string >( db_query_player_info_req, "db_query_player_info_req" ),
	std::make_pair< int, std::string >( db_query_player_info_ret, "db_query_player_info_ret" ),
	std::make_pair< int, std::string >( db_exchange_cdkey_item_req, "db_exchange_cdkey_item_req" ),
	std::make_pair< int, std::string >( db_exchange_cdkey_item_ret, "db_exchange_cdkey_item_ret" ),
	std::make_pair< int, std::string >( db_delete_friend_req, "db_delete_friend_req" ),
	std::make_pair< int, std::string >( db_delete_friend_ret, "db_delete_friend_ret" ),
	std::make_pair< int, std::string >( db_save_player_info_notify, "db_save_player_info_notify" ),
	std::make_pair< int, std::string >( db_player_rechanged_notify, "db_player_rechanged_notify" ),
	std::make_pair< int, std::string >( db_world_boss_rank_list_req, "db_world_boss_rank_list_req" ),
	std::make_pair< int, std::string >( db_world_boss_rank_list_ret, "db_world_boss_rank_list_ret" ),
	std::make_pair< int, std::string >( db_draw_first_rechange_box_req, "db_draw_first_rechange_box_req" ),
	std::make_pair< int, std::string >( db_draw_first_rechange_box_ret, "db_draw_first_rechange_box_ret" ),
	std::make_pair< int, std::string >( db_worldboss_list_req, "db_worldboss_list_req" ),
	std::make_pair< int, std::string >( db_worldboss_list_ret, "db_worldboss_list_ret" ),
	std::make_pair< int, std::string >( db_world_boss_rank_info_req, "db_world_boss_rank_info_req" ),
	std::make_pair< int, std::string >( db_world_boss_rank_info_ret, "db_world_boss_rank_info_ret" ),
	std::make_pair< int, std::string >( db_init_player_expediton_list_req, "db_init_player_expediton_list_req" ),
	std::make_pair< int, std::string >( db_init_player_expediton_list_ret, "db_init_player_expediton_list_ret" ),
	std::make_pair< int, std::string >( db_update_player_expediton_gate_req, "db_update_player_expediton_gate_req" ),
	std::make_pair< int, std::string >( db_update_player_expediton_gate_ret, "db_update_player_expediton_gate_ret" ),
	std::make_pair< int, std::string >( db_update_player_expediton_info_req, "db_update_player_expediton_info_req" ),
	std::make_pair< int, std::string >( db_update_player_expediton_info_ret, "db_update_player_expediton_info_ret" ),
	std::make_pair< int, std::string >( G2M_REGISTER_TO_MAP_REQUEST, "G2M_REGISTER_TO_MAP_REQUEST" ),
	std::make_pair< int, std::string >( G2M_PLAYER_HERO_INFO_CHANGE_REQUEST, "G2M_PLAYER_HERO_INFO_CHANGE_REQUEST" ),
	std::make_pair< int, std::string >(G2M_PLAYER_PET_STATUS_CHANGE_REQUEST, "G2M_PLAYER_PET_STATUS_CHANGE_REQUEST" ),
	std::make_pair< int, std::string >(G2M_HEART_REQUEST, "G2M_HEART_REQUEST"),
	std::make_pair< int, std::string >(M2G_HEART_RET, "M2G_HEART_RET"), 
	std::make_pair< int, std::string >(G2M_SEND_PLAYER_LOGIN_INFO, "G2M_SEND_PLAYER_LOGIN_INFO"),
	std::make_pair< int, std::string >(ct_ct2gm_player_chat_event, "ct_ct2gm_player_chat_event"),


};




